diff options
author | 2015-02-23 09:06:38 -0800 | |
---|---|---|
committer | 2015-02-23 09:06:38 -0800 | |
commit | 6bc1b5fab8554a9cb643277b4867965dd4535cd6 (patch) | |
tree | 3179261534d7db7a8264735b327daa59593e1dd0 /src/gpu/gl/GrGLRenderTarget.h | |
parent | 42380174ca509e78ab932fa8c6dae953e1eaaa5a (diff) |
Dynamically create stencil buffer when needed.
Review URL: https://codereview.chromium.org/938383004
Diffstat (limited to 'src/gpu/gl/GrGLRenderTarget.h')
-rw-r--r-- | src/gpu/gl/GrGLRenderTarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLRenderTarget.h b/src/gpu/gl/GrGLRenderTarget.h index 4d08c1493a..7e7349257f 100644 --- a/src/gpu/gl/GrGLRenderTarget.h +++ b/src/gpu/gl/GrGLRenderTarget.h @@ -54,6 +54,9 @@ public: } } + /** When we don't own the FBO ID we don't attempt to modify its attachments. */ + bool canAttemptStencilAttachment() const SK_OVERRIDE { return !fIsWrapped; } + protected: // The public constructor registers this object with the cache. However, only the most derived // class should register with the cache. This constructor does not do the registration and |