aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLRenderTarget.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-02-23 09:06:38 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2015-02-23 09:06:38 -0800
commit6bc1b5fab8554a9cb643277b4867965dd4535cd6 (patch)
tree3179261534d7db7a8264735b327daa59593e1dd0 /src/gpu/gl/GrGLRenderTarget.h
parent42380174ca509e78ab932fa8c6dae953e1eaaa5a (diff)
Dynamically create stencil buffer when needed.
Diffstat (limited to 'src/gpu/gl/GrGLRenderTarget.h')
-rw-r--r--src/gpu/gl/GrGLRenderTarget.h3
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