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

Side by Side Diff: src/effects/SkColorCubeFilter.cpp

Issue 1246193002: Moved GrGLFragmentProcessor definition to its own file (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/SkBlurMaskFilter.cpp ('k') | src/effects/SkColorFilters.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 * 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
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
OLDNEW
« no previous file with comments | « src/effects/SkBlurMaskFilter.cpp ('k') | src/effects/SkColorFilters.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698