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

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

Issue 1351533004: share code between SkGr and Cacherator (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: captured strict check in a helper function Created 5 years, 3 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 | « no previous file | src/core/SkImageCacherator.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 static inline SkPMColor GrColorToSkPMColor(GrColor c) { 71 static inline SkPMColor GrColorToSkPMColor(GrColor c) {
72 GrColorIsPMAssert(c); 72 GrColorIsPMAssert(c);
73 return SkPackARGB32(GrColorUnpackA(c), GrColorUnpackR(c), GrColorUnpackG(c), GrColorUnpackB(c)); 73 return SkPackARGB32(GrColorUnpackA(c), GrColorUnpackR(c), GrColorUnpackG(c), GrColorUnpackB(c));
74 } 74 }
75 75
76 static inline GrColor SkPMColorToGrColor(SkPMColor c) { 76 static inline GrColor SkPMColorToGrColor(SkPMColor c) {
77 return GrColorPackRGBA(SkGetPackedR32(c), SkGetPackedG32(c), SkGetPackedB32( c), 77 return GrColorPackRGBA(SkGetPackedR32(c), SkGetPackedG32(c), SkGetPackedB32( c),
78 SkGetPackedA32(c)); 78 SkGetPackedA32(c));
79 } 79 }
80 80
81 GrSurfaceDesc GrImageInfoToSurfaceDesc(const SkImageInfo&);
82
81 //////////////////////////////////////////////////////////////////////////////// 83 ////////////////////////////////////////////////////////////////////////////////
82 84
83 /** 85 /**
84 * If the compressed data in the SkData is supported (as a texture format, this returns 86 * If the compressed data in the SkData is supported (as a texture format, this returns
85 * the pixel-config that should be used, and sets outStartOfDataToUpload to the ptr into 87 * the pixel-config that should be used, and sets outStartOfDataToUpload to the ptr into
86 * the data where the actual raw data starts (skipping any header bytes). 88 * the data where the actual raw data starts (skipping any header bytes).
87 * 89 *
88 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig , and 90 * If the compressed data is not supported, this returns kUnknown_GrPixelConfig , and
89 * ignores outStartOfDataToUpload. 91 * ignores outStartOfDataToUpload.
90 */ 92 */
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 bool* doBicubic); 137 bool* doBicubic);
136 138
137 //////////////////////////////////////////////////////////////////////////////// 139 ////////////////////////////////////////////////////////////////////////////////
138 // Classes 140 // Classes
139 141
140 class SkGlyphCache; 142 class SkGlyphCache;
141 143
142 //////////////////////////////////////////////////////////////////////////////// 144 ////////////////////////////////////////////////////////////////////////////////
143 145
144 #endif 146 #endif
OLDNEW
« no previous file with comments | « no previous file | src/core/SkImageCacherator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698