diff options
author | Romain Guy <romainguy@google.com> | 2012-10-19 10:45:41 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2012-10-19 10:45:41 -0700 |
commit | be432fa01cc5995bcab162369c47454903a5ae55 (patch) | |
tree | 438fad7b39800564cf2c37d401bc9e89f8a8b3e6 /libs/hwui/OpenGLRenderer.h | |
parent | e2c0feb53651cd943c91a8649ffec61efb2ae4fa (diff) | |
parent | eb78cf538f87301c1612bf081ae2d5f93cae50f0 (diff) | |
download | frameworks_base-be432fa01cc5995bcab162369c47454903a5ae55.zip frameworks_base-be432fa01cc5995bcab162369c47454903a5ae55.tar.gz frameworks_base-be432fa01cc5995bcab162369c47454903a5ae55.tar.bz2 |
am eb78cf53: am 8b946c05: Merge "Defer layer rendering to avoid stalls Bug #7326824" into jb-mr1-dev
* commit 'eb78cf538f87301c1612bf081ae2d5f93cae50f0':
Defer layer rendering to avoid stalls Bug #7326824
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rw-r--r-- | libs/hwui/OpenGLRenderer.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index a40d69a..c5e4c8e 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -94,7 +94,7 @@ public: * and will not be cleared. If false, the target surface * will be cleared */ - ANDROID_API int prepare(bool opaque); + ANDROID_API status_t prepare(bool opaque); /** * Prepares the renderer to draw a frame. This method must be invoked @@ -110,7 +110,7 @@ public: * and will not be cleared. If false, the target surface * will be cleared in the specified dirty rectangle */ - virtual int prepareDirty(float left, float top, float right, float bottom, bool opaque); + virtual status_t prepareDirty(float left, float top, float right, float bottom, bool opaque); /** * Indicates the end of a frame. This method must be invoked whenever @@ -270,6 +270,11 @@ protected: void initViewport(int width, int height); /** + * Clears the underlying surface if needed. + */ + virtual status_t clear(float left, float top, float right, float bottom, bool opaque); + + /** * Call this method after updating a layer during a drawing pass. */ void resumeAfterLayer(); @@ -355,6 +360,10 @@ protected: return false; } + Caches& getCaches() { + return mCaches; + } + private: /** * Ensures the state of the renderer is the same as the state of |