aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLGpu.h
diff options
context:
space:
mode:
authorGravatar Adrienne Walker <enne@chromium.org>2018-05-17 11:37:14 -0700
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-05-18 17:26:14 +0000
commit4ee88511bc04dcfb66c4c58d3b600f329bedb44e (patch)
treef9b9597cda5c9477005754175926ce8c40bbc237 /src/gpu/gl/GrGLGpu.h
parent160e93dc19cb498dd846f5ad7b1fd810910c7465 (diff)
Driver bug workaround: unbind_attachments_on_bound_render_fbo_delete
Bug: chromium: 829614 Change-Id: Ic6bc276d1203d24f96fe92b41655871e25f69623 Reviewed-on: https://skia-review.googlesource.com/128395 Reviewed-by: Brian Salomon <bsalomon@google.com> Commit-Queue: Adrienne Walker <enne@chromium.org>
Diffstat (limited to 'src/gpu/gl/GrGLGpu.h')
-rw-r--r--src/gpu/gl/GrGLGpu.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gpu/gl/GrGLGpu.h b/src/gpu/gl/GrGLGpu.h
index d09dd4cfa9..b63a907c9e 100644
--- a/src/gpu/gl/GrGLGpu.h
+++ b/src/gpu/gl/GrGLGpu.h
@@ -179,7 +179,8 @@ public:
void insertEventMarker(const char*);
- void didBindFramebuffer();
+ void bindFramebuffer(GrGLenum fboTarget, GrGLuint fboid);
+ void deleteFramebuffer(GrGLuint fboid);
private:
GrGLGpu(std::unique_ptr<GrGLContext>, GrContext*);
@@ -575,6 +576,8 @@ private:
TriState fHWSRGBFramebuffer;
SkTArray<GrGpuResource::UniqueID, true> fHWBoundTextureUniqueIDs;
+ GrGLuint fBoundDrawFramebuffer = 0;
+
struct BufferTexture {
BufferTexture() : fTextureID(0), fKnownBound(false),
fAttachedBufferUniqueID(SK_InvalidUniqueID),