OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |