diff options
Diffstat (limited to 'tools/gpu/gl')
-rw-r--r-- | tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp | 3 | ||||
-rw-r--r-- | tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp b/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp index 82888d8984..54845fc28b 100644 --- a/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp +++ b/tools/gpu/gl/command_buffer/GLTestContext_command_buffer.cpp @@ -6,6 +6,8 @@ * found in the LICENSE file. */ +#ifndef SK_NO_COMMAND_BUFFER + #include "SkMutex.h" #include "SkOnce.h" #include "gl/GrGLInterface.h" @@ -302,3 +304,4 @@ int CommandBufferGLTestContext::getSampleCount() { } } // namespace sk_gpu_test +#endif // SK_NO_COMMAND_BUFFER diff --git a/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp b/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp index e5939f4a79..c006098d2f 100644 --- a/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp +++ b/tools/gpu/gl/egl/CreatePlatformGLTestContext_egl.cpp @@ -237,6 +237,7 @@ GrGLuint EGLGLTestContext::eglImageToExternalTexture(GrEGLImage image) const { if (!this->gl()->hasExtension("GL_OES_EGL_image_external")) { return 0; } +#ifndef EGL_NO_IMAGE_EXTERNAL typedef GrGLvoid (*EGLImageTargetTexture2DProc)(GrGLenum, GrGLeglImage); EGLImageTargetTexture2DProc glEGLImageTargetTexture2D = @@ -260,6 +261,9 @@ GrGLuint EGLGLTestContext::eglImageToExternalTexture(GrEGLImage image) const { return 0; } return texID; +#else + return 0; +#endif //EGL_NO_IMAGE_EXTERNAL } std::unique_ptr<sk_gpu_test::GLTestContext> EGLGLTestContext::makeNew() const { |