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

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

Issue 716143004: Replace GrResourceCache with GrResourceCache2. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix asserts Created 6 years, 1 month 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/GrTexture.cpp ('k') | tests/ResourceCacheTest.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 2010 Google Inc. 2 * Copyright 2010 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 "SkGr.h" 8 #include "SkGr.h"
9 #include "SkColorFilter.h" 9 #include "SkColorFilter.h"
10 #include "SkConfig8888.h" 10 #include "SkConfig8888.h"
11 #include "SkData.h" 11 #include "SkData.h"
12 #include "SkMessageBus.h" 12 #include "SkMessageBus.h"
13 #include "SkPixelRef.h" 13 #include "SkPixelRef.h"
14 #include "SkTextureCompressor.h" 14 #include "SkTextureCompressor.h"
15 #include "GrResourceCache.h"
16 #include "GrGpu.h" 15 #include "GrGpu.h"
17 #include "effects/GrDitherEffect.h" 16 #include "effects/GrDitherEffect.h"
18 #include "GrDrawTargetCaps.h" 17 #include "GrDrawTargetCaps.h"
19 #include "effects/GrYUVtoRGBEffect.h" 18 #include "effects/GrYUVtoRGBEffect.h"
20 19
21 #ifndef SK_IGNORE_ETC1_SUPPORT 20 #ifndef SK_IGNORE_ETC1_SUPPORT
22 # include "ktx.h" 21 # include "ktx.h"
23 # include "etc1.h" 22 # include "etc1.h"
24 #endif 23 #endif
25 24
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 if (shader->asFragmentProcessor(context, skPaint, NULL, &paintColor, &fp ) && fp) { 573 if (shader->asFragmentProcessor(context, skPaint, NULL, &paintColor, &fp ) && fp) {
575 grPaint->addColorProcessor(fp)->unref(); 574 grPaint->addColorProcessor(fp)->unref();
576 constantColor = false; 575 constantColor = false;
577 } 576 }
578 } 577 }
579 578
580 // The grcolor is automatically set when calling asFragmentProcessor. 579 // The grcolor is automatically set when calling asFragmentProcessor.
581 // If the shader can be seen as an effect it returns true and adds its effec t to the grpaint. 580 // If the shader can be seen as an effect it returns true and adds its effec t to the grpaint.
582 SkPaint2GrPaintNoShader(context, skPaint, paintColor, constantColor, grPaint ); 581 SkPaint2GrPaintNoShader(context, skPaint, paintColor, constantColor, grPaint );
583 } 582 }
OLDNEW
« no previous file with comments | « src/gpu/GrTexture.cpp ('k') | tests/ResourceCacheTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698