OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 #include "SkColorCubeFilter.h" | 8 #include "SkColorCubeFilter.h" |
9 #include "SkColorPriv.h" | 9 #include "SkColorPriv.h" |
10 #include "SkOnce.h" | 10 #include "SkOnce.h" |
11 #include "SkReadBuffer.h" | 11 #include "SkReadBuffer.h" |
12 #include "SkUnPreMultiply.h" | 12 #include "SkUnPreMultiply.h" |
13 #include "SkWriteBuffer.h" | 13 #include "SkWriteBuffer.h" |
14 #if SK_SUPPORT_GPU | 14 #if SK_SUPPORT_GPU |
15 #include "GrContext.h" | 15 #include "GrContext.h" |
16 #include "GrCoordTransform.h" | 16 #include "GrCoordTransform.h" |
17 #include "GrInvariantOutput.h" | 17 #include "GrInvariantOutput.h" |
18 #include "GrTexturePriv.h" | 18 #include "GrTexturePriv.h" |
19 #include "SkGr.h" | 19 #include "SkGr.h" |
20 #include "gl/GrGLProcessor.h" | 20 #include "gl/GrGLFragmentProcessor.h" |
21 #include "gl/builders/GrGLProgramBuilder.h" | 21 #include "gl/builders/GrGLProgramBuilder.h" |
22 #endif | 22 #endif |
23 | 23 |
24 /////////////////////////////////////////////////////////////////////////////// | 24 /////////////////////////////////////////////////////////////////////////////// |
25 namespace { | 25 namespace { |
26 | 26 |
27 int32_t SkNextColorCubeUniqueID() { | 27 int32_t SkNextColorCubeUniqueID() { |
28 static int32_t gColorCubeUniqueID; | 28 static int32_t gColorCubeUniqueID; |
29 // do a loop in case our global wraps around, as we never want to return a 0 | 29 // do a loop in case our global wraps around, as we never want to return a 0 |
30 int32_t genID; | 30 int32_t genID; |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
367 *array->append() = frag; | 367 *array->append() = frag; |
368 } else { | 368 } else { |
369 frag->unref(); | 369 frag->unref(); |
370 SkDEBUGCODE(frag = NULL;) | 370 SkDEBUGCODE(frag = NULL;) |
371 } | 371 } |
372 return true; | 372 return true; |
373 } | 373 } |
374 return false; | 374 return false; |
375 } | 375 } |
376 #endif | 376 #endif |
OLD | NEW |