Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: src/gpu/GrResourceProvider.cpp

Issue 2165283002: Remove DrawFace enum from GrPipelineBuilder (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try again Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/gpu/GrPipelineBuilder.cpp ('k') | src/gpu/GrSoftwarePathRenderer.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « src/gpu/GrPipelineBuilder.cpp ('k') | src/gpu/GrSoftwarePathRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698