diff options
Diffstat (limited to 'src/gpu/gl/GrGLRenderTarget.cpp')
-rw-r--r-- | src/gpu/gl/GrGLRenderTarget.cpp | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/gpu/gl/GrGLRenderTarget.cpp b/src/gpu/gl/GrGLRenderTarget.cpp index 73c5fdf4b3..de7399bd92 100644 --- a/src/gpu/gl/GrGLRenderTarget.cpp +++ b/src/gpu/gl/GrGLRenderTarget.cpp @@ -91,16 +91,8 @@ GrBackendRenderTarget GrGLRenderTarget::getBackendRenderTarget() const { numStencilBits = stencil->bits(); } - GrBackendRenderTarget beRT = GrBackendRenderTarget(this->width(), this->height(), - this->numColorSamples(), numStencilBits, - fbi); -#if GR_TEST_UTILS - // We shouldn't have to set this since the client can't access it and we will handle the config - // correctly if we go through our public SkSurface APIs. However, some of our tests bypass the - // public APIs so we need to set this manually here. - beRT.setPixelConfig(this->config()); -#endif - return beRT; + return GrBackendRenderTarget(this->width(), this->height(), this->numColorSamples(), + numStencilBits, fbi); } size_t GrGLRenderTarget::onGpuMemorySize() const { |