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

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

Issue 1291803002: Extend SkImageGenerator to support natively generated GrTextures (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 4 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/core/SkPixelRef.h ('k') | src/core/SkImageCacherator.h » ('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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 static inline GrColor SkColor2GrColorJustAlpha(SkColor c) { 65 static inline GrColor SkColor2GrColorJustAlpha(SkColor c) {
66 U8CPU a = SkColorGetA(c); 66 U8CPU a = SkColorGetA(c);
67 return GrColorPackRGBA(a, a, a, a); 67 return GrColorPackRGBA(a, a, a, a);
68 } 68 }
69 69
70 //////////////////////////////////////////////////////////////////////////////// 70 ////////////////////////////////////////////////////////////////////////////////
71 71
72 bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams* ); 72 bool GrIsBitmapInCache(const GrContext*, const SkBitmap&, const GrTextureParams* );
73 73
74 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params*); 74 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, const GrTexture Params*);
75 GrTexture* GrRefCachedBitmapTexture(GrContext*, const SkBitmap&, SkImageUsageTyp e);
75 76
76 //////////////////////////////////////////////////////////////////////////////// 77 ////////////////////////////////////////////////////////////////////////////////
77 78
78 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader. 79 // Converts a SkPaint to a GrPaint, ignoring the SkPaint's shader.
79 // Sets the color of GrPaint to the value of the parameter paintColor 80 // Sets the color of GrPaint to the value of the parameter paintColor
80 // Callers may subsequently modify the GrPaint. Setting constantColor indicates 81 // Callers may subsequently modify the GrPaint. Setting constantColor indicates
81 // that the final paint will draw the same color at every pixel. This allows 82 // that the final paint will draw the same color at every pixel. This allows
82 // an optimization where the color filter can be applied to the SkPaint's 83 // an optimization where the color filter can be applied to the SkPaint's
83 // color once while converting to GrPaint and then ignored. TODO: Remove this 84 // color once while converting to GrPaint and then ignored. TODO: Remove this
84 // bool and use the invariant info to automatically apply the color filter. 85 // bool and use the invariant info to automatically apply the color filter.
(...skipping 18 matching lines...) Expand all
103 bool* doBicubic); 104 bool* doBicubic);
104 105
105 //////////////////////////////////////////////////////////////////////////////// 106 ////////////////////////////////////////////////////////////////////////////////
106 // Classes 107 // Classes
107 108
108 class SkGlyphCache; 109 class SkGlyphCache;
109 110
110 //////////////////////////////////////////////////////////////////////////////// 111 ////////////////////////////////////////////////////////////////////////////////
111 112
112 #endif 113 #endif
OLDNEW
« no previous file with comments | « include/core/SkPixelRef.h ('k') | src/core/SkImageCacherator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698