From eb99356a0548684a501766e6a524529ab93304c8 Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Tue, 5 Oct 2010 18:14:38 -0700 Subject: Optimize saveLayer() when the clip flag is set. This speeds up applications, especially Launcher. --- libs/hwui/OpenGLRenderer.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'libs/hwui/OpenGLRenderer.h') diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 1974cf075534..e3d465381b8a 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -167,11 +167,12 @@ private: * @param alpha The translucency of the layer * @param mode The blending mode of the layer * @param flags The layer save flags + * @param previousFbo The name of the current framebuffer * * @return True if the layer was successfully created, false otherwise */ bool createLayer(sp snapshot, float left, float top, float right, float bottom, - int alpha, SkXfermode::Mode mode, int flags); + int alpha, SkXfermode::Mode mode, int flags, GLuint previousFbo); /** * Clears all the regions corresponding to the current list of layers. -- cgit v1.2.3-59-g8ed1b