diff options
| author | Romain Guy <romainguy@google.com> | 2010-09-12 13:02:16 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2010-09-12 13:02:16 -0700 |
| commit | 8694230ff25fa0a60e480d424843e56b718f0516 (patch) | |
| tree | 4fa55299cb6a516c443ce2c2082530ec69928211 /libs/hwui/OpenGLRenderer.h | |
| parent | f607bdc167f66b3e7003acaa4736ae46d78c1492 (diff) | |
| download | frameworks_base-8694230ff25fa0a60e480d424843e56b718f0516.zip frameworks_base-8694230ff25fa0a60e480d424843e56b718f0516.tar.gz frameworks_base-8694230ff25fa0a60e480d424843e56b718f0516.tar.bz2 | |
Optimize calls to glCopyTexImage2D().
Change-Id: I34ee87bd4472864f440916e03a2894fae24bbe4a
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
| -rw-r--r-- | libs/hwui/OpenGLRenderer.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index e7f933f..12ec276 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -29,6 +29,7 @@ #include <utils/RefBase.h> #include <utils/ResourceTypes.h> +#include <utils/Vector.h> #include "Extensions.h" #include "Matrix.h" @@ -156,6 +157,12 @@ private: int alpha, SkXfermode::Mode mode, int flags); /** + * Clears all the regions corresponding to the current list of layers. + * This method MUST be invoked before any drawing operation. + */ + void clearLayerRegions(); + + /** * Draws a colored rectangle with the specified color. The specified coordinates * are transformed by the current snapshot's transform matrix. * @@ -385,6 +392,10 @@ private: // Various caches Caches& mCaches; + + // List of rectangles to clear due to calls to saveLayer() + Vector<Rect*> mLayers; + }; // class OpenGLRenderer }; // namespace uirenderer |
