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

Side by Side Diff: src/effects/gradients/SkGradientShaderPriv.h

Issue 474983005: rename gradients private BitmapCache to GradientBitmapCache (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « src/effects/gradients/SkGradientShader.cpp ('k') | no next file » | 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 2012 Google Inc. 2 * Copyright 2012 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 #ifndef SkGradientShaderPriv_DEFINED 8 #ifndef SkGradientShaderPriv_DEFINED
9 #define SkGradientShaderPriv_DEFINED 9 #define SkGradientShaderPriv_DEFINED
10 10
11 #include "SkGradientBitmapCache.h"
11 #include "SkGradientShader.h" 12 #include "SkGradientShader.h"
12 #include "SkClampRange.h" 13 #include "SkClampRange.h"
13 #include "SkColorPriv.h" 14 #include "SkColorPriv.h"
14 #include "SkReadBuffer.h" 15 #include "SkReadBuffer.h"
15 #include "SkWriteBuffer.h" 16 #include "SkWriteBuffer.h"
16 #include "SkMallocPixelRef.h" 17 #include "SkMallocPixelRef.h"
17 #include "SkUtils.h" 18 #include "SkUtils.h"
18 #include "SkTemplates.h" 19 #include "SkTemplates.h"
19 #include "SkBitmapCache.h"
20 #include "SkShader.h" 20 #include "SkShader.h"
21 #include "SkOnce.h" 21 #include "SkOnce.h"
22 22
23 static inline void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1, 23 static inline void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1,
24 int count) { 24 int count) {
25 if (count > 0) { 25 if (count > 0) {
26 if (v0 == v1) { 26 if (v0 == v1) {
27 sk_memset32(dst, v0, count); 27 sk_memset32(dst, v0, count);
28 } else { 28 } else {
29 int pairs = count >> 1; 29 int pairs = count >> 1;
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after
464 GrGLProgramDataManager::UniformHandle fColorStartUni; 464 GrGLProgramDataManager::UniformHandle fColorStartUni;
465 GrGLProgramDataManager::UniformHandle fColorMidUni; 465 GrGLProgramDataManager::UniformHandle fColorMidUni;
466 GrGLProgramDataManager::UniformHandle fColorEndUni; 466 GrGLProgramDataManager::UniformHandle fColorEndUni;
467 467
468 typedef GrGLEffect INHERITED; 468 typedef GrGLEffect INHERITED;
469 }; 469 };
470 470
471 #endif 471 #endif
472 472
473 #endif 473 #endif
OLDNEW
« no previous file with comments | « src/effects/gradients/SkGradientShader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698