diff options
| author | 2011-11-10 19:23:58 -0800 | |
|---|---|---|
| committer | 2011-12-06 16:37:10 -0800 | |
| commit | 9c4b79af221b53f602f946faa9ff317a596a0c39 (patch) | |
| tree | 134a3a19b685c55dc23a08ae8929fb292333f768 /libs/hwui/Extensions.h | |
| parent | e98ae0a050d6ce4b3e2aec7c070a87922086c256 (diff) | |
Discard framebuffer rendering queues when discarding layers
Bug #5581817
Change-Id: Ie30700a29059d2ea60eb7bd3f8bd20ac48a149ab
Diffstat (limited to 'libs/hwui/Extensions.h')
| -rw-r--r-- | libs/hwui/Extensions.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libs/hwui/Extensions.h b/libs/hwui/Extensions.h index 38d113000480..48e42471aa65 100644 --- a/libs/hwui/Extensions.h +++ b/libs/hwui/Extensions.h @@ -66,6 +66,7 @@ public: mHasNPot = hasExtension("GL_OES_texture_npot"); mHasFramebufferFetch = hasExtension("GL_NV_shader_framebuffer_fetch"); + mHasDiscardFramebuffer = hasExtension("GL_EXT_discard_framebuffer"); const char* vendor = (const char*) glGetString(GL_VENDOR); EXT_LOGD("Vendor: %s", vendor); @@ -80,6 +81,7 @@ public: inline bool hasNPot() const { return mHasNPot; } inline bool hasFramebufferFetch() const { return mHasFramebufferFetch; } inline bool needsHighpTexCoords() const { return mNeedsHighpTexCoords; } + inline bool hasDiscardFramebuffer() const { return mHasDiscardFramebuffer; } bool hasExtension(const char* extension) const { const String8 s(extension); @@ -98,6 +100,7 @@ private: bool mHasNPot; bool mNeedsHighpTexCoords; bool mHasFramebufferFetch; + bool mHasDiscardFramebuffer; }; // class Extensions }; // namespace uirenderer |