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

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

Issue 2086293006: Move GrPipelineBuilder out of gms & reduce use of GrPipelineBuilder.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: update to ToT Created 4 years, 6 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/GrTextureParamsAdjuster.cpp ('k') | src/gpu/GrXferProcessor.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 "GrTextureProvider.h" 8 #include "GrTextureProvider.h"
9
10 #include "GrCaps.h"
9 #include "GrTexturePriv.h" 11 #include "GrTexturePriv.h"
10 #include "GrResourceCache.h" 12 #include "GrResourceCache.h"
11 #include "GrGpu.h" 13 #include "GrGpu.h"
12 #include "../private/GrSingleOwner.h" 14 #include "../private/GrSingleOwner.h"
13 #include "SkMathPriv.h" 15 #include "SkMathPriv.h"
14 #include "SkTArray.h" 16 #include "SkTArray.h"
15 17
16 #define ASSERT_SINGLE_OWNER \ 18 #define ASSERT_SINGLE_OWNER \
17 SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fSingleOwner);) 19 SkDEBUGCODE(GrSingleOwner::AutoEnforce debug_SingleOwner(fSingleOwner);)
18 20
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 GrTexture* GrTextureProvider::findAndRefTextureByUniqueKey(const GrUniqueKey& ke y) { 194 GrTexture* GrTextureProvider::findAndRefTextureByUniqueKey(const GrUniqueKey& ke y) {
193 ASSERT_SINGLE_OWNER 195 ASSERT_SINGLE_OWNER
194 GrGpuResource* resource = this->findAndRefResourceByUniqueKey(key); 196 GrGpuResource* resource = this->findAndRefResourceByUniqueKey(key);
195 if (resource) { 197 if (resource) {
196 GrTexture* texture = static_cast<GrSurface*>(resource)->asTexture(); 198 GrTexture* texture = static_cast<GrSurface*>(resource)->asTexture();
197 SkASSERT(texture); 199 SkASSERT(texture);
198 return texture; 200 return texture;
199 } 201 }
200 return NULL; 202 return NULL;
201 } 203 }
OLDNEW
« no previous file with comments | « src/gpu/GrTextureParamsAdjuster.cpp ('k') | src/gpu/GrXferProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698