Chromium Code Reviews| Index: src/gpu/gl/GrGLGpu.cpp |
| diff --git a/src/gpu/gl/GrGLGpu.cpp b/src/gpu/gl/GrGLGpu.cpp |
| index c07eafeae4aa6040e5555955fbe44e277e90c1a3..a200c24e6dfd3849e8d22f84ec6d3f31fbc0f31f 100644 |
| --- a/src/gpu/gl/GrGLGpu.cpp |
| +++ b/src/gpu/gl/GrGLGpu.cpp |
| @@ -454,6 +454,11 @@ GrTexture* GrGLGpu::onWrapBackendTexture(const GrBackendTextureDesc& desc, |
| return nullptr; |
| } |
| } |
| + // Sample count is interpretted to mean the number of samples that Gr code should allocate |
|
joshualitt
2015/11/20 22:57:04
interpreted
bsalomon
2015/11/23 15:05:14
Done.
|
| + // for a render buffer that resolves to the texture. We don't support MSAA textures. |
| + if (desc.fSampleCnt && !renderTarget) { |
| + return nullptr; |
| + } |
| switch (ownership) { |
| case kAdopt_GrWrapOwnership: |