diff options
author | Romain Guy <romainguy@google.com> | 2010-10-27 18:57:51 -0700 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2010-11-02 16:17:23 -0700 |
commit | 5b3b35296e8b2c8d3f07d32bb645d5414db41a1d (patch) | |
tree | bad2ebdbfeb8a3a0be1591d5a357a8280df7d1d2 /libs/hwui/DisplayListRenderer.h | |
parent | 2444ddb3d9b59ec45ba50858fcbff639e59b93b1 (diff) | |
download | frameworks_base-5b3b35296e8b2c8d3f07d32bb645d5414db41a1d.zip frameworks_base-5b3b35296e8b2c8d3f07d32bb645d5414db41a1d.tar.gz frameworks_base-5b3b35296e8b2c8d3f07d32bb645d5414db41a1d.tar.bz2 |
Optimize FBO drawing with regions.
This optimization is currently disabled until Launcher is
modified to take advantage of it. The optimization can be
enabled by turning on RENDER_LAYERS_AS_REGIONS in the
OpenGLRenderer.h file.
Change-Id: I2fdf59d0f4dc690a3d7f712173ab8db3848b27b1
Diffstat (limited to 'libs/hwui/DisplayListRenderer.h')
-rw-r--r-- | libs/hwui/DisplayListRenderer.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/libs/hwui/DisplayListRenderer.h b/libs/hwui/DisplayListRenderer.h index 6636de6..fd69fab 100644 --- a/libs/hwui/DisplayListRenderer.h +++ b/libs/hwui/DisplayListRenderer.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ANDROID_UI_DISPLAY_LIST_RENDERER_H -#define ANDROID_UI_DISPLAY_LIST_RENDERER_H +#ifndef ANDROID_HWUI_DISPLAY_LIST_RENDERER_H +#define ANDROID_HWUI_DISPLAY_LIST_RENDERER_H #include <SkChunkAlloc.h> #include <SkFlattenable.h> @@ -85,6 +85,7 @@ public: Restore, RestoreToCount, SaveLayer, + SaveLayerAlpha, Translate, Rotate, Scale, @@ -222,6 +223,8 @@ public: int saveLayer(float left, float top, float right, float bottom, SkPaint* p, int flags); + int saveLayerAlpha(float left, float top, float right, float bottom, + int alpha, int flags); void translate(float dx, float dy); void rotate(float degrees); @@ -411,4 +414,4 @@ private: }; // namespace uirenderer }; // namespace android -#endif // ANDROID_UI_DISPLAY_LIST_RENDERER_H +#endif // ANDROID_HWUI_DISPLAY_LIST_RENDERER_H |