aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/gl
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-02-04 14:33:21 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-04 20:01:28 +0000
commite8fabb2665d12ee289bc3af5b7e93c5b12396e2d (patch)
tree3f7cde3336c04ae74c09b102d3fefd7f8c7fb5cd /tools/gpu/gl
parentd2807d5115ad0f6954fa0d77e761db5afdb38d68 (diff)
Update LazyProxy creation to allow for a non-textureable result
Change-Id: Ic284b4f4220afa714159e07f57798a94fd40d63a Reviewed-on: https://skia-review.googlesource.com/102484 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools/gpu/gl')
-rw-r--r--tools/gpu/gl/debug/DebugGLTestContext.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gpu/gl/debug/DebugGLTestContext.cpp b/tools/gpu/gl/debug/DebugGLTestContext.cpp
index 4152997b4d..2b05693366 100644
--- a/tools/gpu/gl/debug/DebugGLTestContext.cpp
+++ b/tools/gpu/gl/debug/DebugGLTestContext.cpp
@@ -102,6 +102,12 @@ public:
this->setTexture(texture);
}
+ GrGLboolean isTexture(GrGLuint textureID) override {
+ GrTextureObj *texture = FIND(textureID, GrTextureObj, kTexture_ObjTypes);
+
+ return texture ? GR_GL_TRUE : GR_GL_FALSE;
+ }
+
////////////////////////////////////////////////////////////////////////////////
GrGLvoid bufferData(GrGLenum target, GrGLsizeiptr size, const GrGLvoid* data,
GrGLenum usage) override {