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

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

Issue 1272293004: Move SkTemplates.h to private. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: It's a struct! 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 | « src/core/SkTLList.h ('k') | src/gpu/GrDefaultPathRenderer.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 * 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 "SkGradientBitmapCache.h"
12 #include "SkGradientShader.h" 12 #include "SkGradientShader.h"
13 #include "SkClampRange.h" 13 #include "SkClampRange.h"
14 #include "SkColorPriv.h" 14 #include "SkColorPriv.h"
15 #include "SkReadBuffer.h" 15 #include "SkReadBuffer.h"
16 #include "SkWriteBuffer.h" 16 #include "SkWriteBuffer.h"
17 #include "SkMallocPixelRef.h" 17 #include "SkMallocPixelRef.h"
18 #include "SkUtils.h" 18 #include "SkUtils.h"
19 #include "SkTemplates.h"
20 #include "SkShader.h" 19 #include "SkShader.h"
21 #include "SkOnce.h" 20 #include "SkOnce.h"
22 21
23 static inline void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1, 22 static inline void sk_memset32_dither(uint32_t dst[], uint32_t v0, uint32_t v1,
24 int count) { 23 int count) {
25 if (count > 0) { 24 if (count > 0) {
26 if (v0 == v1) { 25 if (v0 == v1) {
27 sk_memset32(dst, v0, count); 26 sk_memset32(dst, v0, count);
28 } else { 27 } else {
29 int pairs = count >> 1; 28 int pairs = count >> 1;
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 GrGLProgramDataManager::UniformHandle fColorStartUni; 446 GrGLProgramDataManager::UniformHandle fColorStartUni;
448 GrGLProgramDataManager::UniformHandle fColorMidUni; 447 GrGLProgramDataManager::UniformHandle fColorMidUni;
449 GrGLProgramDataManager::UniformHandle fColorEndUni; 448 GrGLProgramDataManager::UniformHandle fColorEndUni;
450 449
451 typedef GrGLFragmentProcessor INHERITED; 450 typedef GrGLFragmentProcessor INHERITED;
452 }; 451 };
453 452
454 #endif 453 #endif
455 454
456 #endif 455 #endif
OLDNEW
« no previous file with comments | « src/core/SkTLList.h ('k') | src/gpu/GrDefaultPathRenderer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698