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

Side by Side Diff: include/gpu/SkGr.h

Issue 858123002: Add specialized content key class for resources. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove default template arg Created 5 years, 11 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 | « include/gpu/GrTypes.h ('k') | src/effects/SkBlurMaskFilter.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 /* 2 /*
3 * Copyright 2010 Google Inc. 3 * Copyright 2010 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 10
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 static inline GrColor SkColor2GrColorJustAlpha(SkColor c) { 64 static inline GrColor SkColor2GrColorJustAlpha(SkColor c) {
65 U8CPU a = SkColorGetA(c); 65 U8CPU a = SkColorGetA(c);
66 return GrColorPackRGBA(a, a, a, a); 66 return GrColorPackRGBA(a, a, a, a);
67 } 67 }
68 68
69 //////////////////////////////////////////////////////////////////////////////// 69 ////////////////////////////////////////////////////////////////////////////////
70 70
71 // The cache listens for these messages to purge junk resources proactively. 71 // The cache listens for these messages to purge junk resources proactively.
72 struct GrResourceInvalidatedMessage { 72 struct GrResourceInvalidatedMessage {
73 GrResourceKey key; 73 GrContentKey fKey;
74 }; 74 };
75 75
76 bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams* ); 76 bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams* );
77 77
78 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params*); 78 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params*);
79 79
80 //////////////////////////////////////////////////////////////////////////////// 80 ////////////////////////////////////////////////////////////////////////////////
81 81
82 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. 82 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader.
83 // Sets the color of GrPaint to the value of the parameter paintColor 83 // Sets the color of GrPaint to the value of the parameter paintColor
(...skipping 11 matching lines...) Expand all
95 const SkMatrix& viewM, bool constantColor, GrPaint* g rPaint); 95 const SkMatrix& viewM, bool constantColor, GrPaint* g rPaint);
96 96
97 //////////////////////////////////////////////////////////////////////////////// 97 ////////////////////////////////////////////////////////////////////////////////
98 // Classes 98 // Classes
99 99
100 class SkGlyphCache; 100 class SkGlyphCache;
101 101
102 //////////////////////////////////////////////////////////////////////////////// 102 ////////////////////////////////////////////////////////////////////////////////
103 103
104 #endif 104 #endif
OLDNEW
« no previous file with comments | « include/gpu/GrTypes.h ('k') | src/effects/SkBlurMaskFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698