hardware/qcom/display: Fix overcounting frames with CALC_FPS
With a recent change, debug.gr.calcfps was enabled, frames were being overcounted. This change fixes it. CRs-fixed: 350335 (cherry picked from commit e8ea630b6b629403ad713b8cb3d912c4d54e7699) Change-Id: I863072f3311c584edd30f7be74a3ab8122f05f01
This commit is contained in:
		
				
					committed by
					
						 Andrew Sutherland
						Andrew Sutherland
					
				
			
			
				
	
			
			
			
						parent
						
							9a02b8e9d6
						
					
				
				
					commit
					58676afccd
				
			| @@ -1669,9 +1669,9 @@ static int hwc_set(hwc_composer_device_t *dev, | ||||
|         EGLBoolean sucess = eglSwapBuffers((EGLDisplay)dpy, (EGLSurface)sur); | ||||
|         if (!sucess) { | ||||
|             ret = HWC_EGL_ERROR; | ||||
|         } else { | ||||
|             CALC_FPS(); | ||||
|         } | ||||
|     } else { | ||||
|         CALC_FPS(); | ||||
|     } | ||||
|  | ||||
|     // Unlock the previously locked buffer, since the overlay has completed reading the buffer | ||||
|   | ||||
		Reference in New Issue
	
	Block a user