OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
3 * | 3 * |
4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
6 */ | 6 */ |
7 | 7 |
8 #include "GrResourceProvider.h" | 8 #include "GrResourceProvider.h" |
9 | 9 |
10 #include "GrBuffer.h" | 10 #include "GrBuffer.h" |
| 11 #include "GrCaps.h" |
11 #include "GrGpu.h" | 12 #include "GrGpu.h" |
12 #include "GrPathRendering.h" | 13 #include "GrPathRendering.h" |
13 #include "GrRenderTarget.h" | 14 #include "GrRenderTarget.h" |
14 #include "GrRenderTargetPriv.h" | 15 #include "GrRenderTargetPriv.h" |
15 #include "GrResourceCache.h" | 16 #include "GrResourceCache.h" |
16 #include "GrResourceKey.h" | 17 #include "GrResourceKey.h" |
17 #include "GrStencilAttachment.h" | 18 #include "GrStencilAttachment.h" |
18 #include "SkMathPriv.h" | 19 #include "SkMathPriv.h" |
19 | 20 |
20 GR_DECLARE_STATIC_UNIQUE_KEY(gQuadIndexBufferKey); | 21 GR_DECLARE_STATIC_UNIQUE_KEY(gQuadIndexBufferKey); |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 return rt->renderTargetPriv().getStencilAttachment(); | 205 return rt->renderTargetPriv().getStencilAttachment(); |
205 } | 206 } |
206 | 207 |
207 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( | 208 GrRenderTarget* GrResourceProvider::wrapBackendTextureAsRenderTarget( |
208 const GrBackendTextureDesc& desc) { | 209 const GrBackendTextureDesc& desc) { |
209 if (this->isAbandoned()) { | 210 if (this->isAbandoned()) { |
210 return nullptr; | 211 return nullptr; |
211 } | 212 } |
212 return this->gpu()->wrapBackendTextureAsRenderTarget(desc); | 213 return this->gpu()->wrapBackendTextureAsRenderTarget(desc); |
213 } | 214 } |
OLD | NEW |