diff options
| author | 2015-06-23 17:33:06 -0700 | |
|---|---|---|
| committer | 2015-06-24 09:43:54 -0700 | |
| commit | 3375f8ad30997482317b5ade5618cc8a01b96d7d (patch) | |
| tree | a127539cea3216485ea8797ba3ad1d5447d98899 /libs/hwui/OpenGLRenderer.h | |
| parent | bcca4ac4fb4fa66f2e4196437998c08e4dbed1d3 (diff) | |
Avoid over-damaging layer area for multidraws
bug:19608961
Change-Id: Ib7495f155da62a352e9a010a362fd40ec0acad21
Diffstat (limited to 'libs/hwui/OpenGLRenderer.h')
| -rwxr-xr-x | libs/hwui/OpenGLRenderer.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libs/hwui/OpenGLRenderer.h b/libs/hwui/OpenGLRenderer.h index 5850dc671889..800a9f9cf18f 100755 --- a/libs/hwui/OpenGLRenderer.h +++ b/libs/hwui/OpenGLRenderer.h @@ -535,7 +535,13 @@ protected: RenderState& mRenderState; private: - void renderGlop(const Glop& glop, bool clearLayer = true); + enum class GlopRenderType { + Standard, + Multi, + LayerClear + }; + + void renderGlop(const Glop& glop, GlopRenderType type = GlopRenderType::Standard); /** * Discards the content of the framebuffer if supported by the driver. |