From c3fedafc5f50100219449125a000e3138f6fb987 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 29 Jan 2013 17:26:25 -0800 Subject: Fix graphical corruption on QCOM GPU Bug #7146141 The GL_QCOM_tiled_rendering extension requires careful use of start/endTiling when attaching a renderbuffer dynamically. Change-Id: I20036683ed3909ffaf40cc3d57a25257e35b6fa2 --- libs/hwui/OpenGLRenderer.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'libs/hwui/OpenGLRenderer.h') diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index d4e1eb50d78f..594580eda86d 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -400,11 +400,20 @@ private: /** * Tells the GPU what part of the screen is about to be redrawn. + * This method will use the clip rect that we started drawing the + * frame with. * This method needs to be invoked every time getTargetFbo() is * bound again. */ void startTiling(const sp& snapshot, bool opaque = false); + /** + * Tells the GPU what part of the screen is about to be redrawn. + * This method needs to be invoked every time getTargetFbo() is + * bound again. + */ + void startTiling(const Rect& clip, int windowHeight, bool opaque = false); + /** * Tells the GPU that we are done drawing the frame or that we * are switching to another render target. -- cgit v1.2.3-59-g8ed1b