diff options
author | Romain Guy <romainguy@google.com> | 2013-01-04 19:05:13 -0800 |
---|---|---|
committer | Romain Guy <romainguy@google.com> | 2013-01-04 19:21:54 -0800 |
commit | 672433d90fab7383cd28beac9d4485b566a90940 (patch) | |
tree | 8e5088ba91b9a33aeffccd3b2c6f03b0c8e2b144 /libs/hwui/OpenGLRenderer.h | |
parent | 5913148104f0b233d861fab2873befc865bf57c0 (diff) | |
download | frameworks_base-672433d90fab7383cd28beac9d4485b566a90940.zip frameworks_base-672433d90fab7383cd28beac9d4485b566a90940.tar.gz frameworks_base-672433d90fab7383cd28beac9d4485b566a90940.tar.bz2 |
Add visual profiling feature
When profiling is enabled with debug.hwui.profile set to true,
setting debug.hwui.profile_visualizer to true will display the
profiling data directly on screen.
Change-Id: I3d5fe3f0347090815087b1cbfce66b8e76d9347b
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
-rw-r--r-- | libs/hwui/OpenGLRenderer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index f165581..b1d3cc3 100644 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -201,6 +201,7 @@ public: const float* positions, SkPaint* paint); virtual status_t drawText(const char* text, int bytesCount, int count, float x, float y, const float* positions, SkPaint* paint, float length = -1.0f); + virtual status_t drawRects(const float* rects, int count, SkPaint* paint); virtual void resetShader(); virtual void setupShader(SkiaShader* shader); @@ -216,6 +217,10 @@ public: SkPaint* filterPaint(SkPaint* paint); + ANDROID_API bool isCurrentTransformSimple() { + return mSnapshot->transform->isSimple(); + } + /** * Sets the alpha on the current snapshot. This alpha value will be modulated * with other alpha values when drawing primitives. |