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

Side by Side Diff: tests/GpuColorFilterTest.cpp

Issue 660573002: Split GrFragmentProcessor into its own header (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add file to git Created 6 years, 2 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/gpu/effects/GrSingleTextureEffect.h ('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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 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 #if SK_SUPPORT_GPU 9 #if SK_SUPPORT_GPU
10 10
11 #include "GrContext.h" 11 #include "GrContext.h"
12 #include "GrContextFactory.h" 12 #include "GrContextFactory.h"
13 #include "GrProcessor.h" 13 #include "GrFragmentProcessor.h"
14 #include "SkColorFilter.h" 14 #include "SkColorFilter.h"
15 #include "SkGr.h" 15 #include "SkGr.h"
16 #include "Test.h" 16 #include "Test.h"
17 17
18 static GrColor filterColor(const GrColor& color, uint32_t flags) { 18 static GrColor filterColor(const GrColor& color, uint32_t flags) {
19 uint32_t mask = 0; 19 uint32_t mask = 0;
20 if (flags & kR_GrColorComponentFlag) { 20 if (flags & kR_GrColorComponentFlag) {
21 mask = 0xFF << GrColor_SHIFT_R; 21 mask = 0xFF << GrColor_SHIFT_R;
22 } 22 }
23 if (flags & kG_GrColorComponentFlag) { 23 if (flags & kG_GrColorComponentFlag) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 GrContext* grContext = factory->get(glType); 115 GrContext* grContext = factory->get(glType);
116 if (NULL == grContext) { 116 if (NULL == grContext) {
117 continue; 117 continue;
118 } 118 }
119 119
120 test_getConstantColorComponents(reporter, grContext); 120 test_getConstantColorComponents(reporter, grContext);
121 } 121 }
122 } 122 }
123 123
124 #endif 124 #endif
OLDNEW
« no previous file with comments | « src/gpu/effects/GrSingleTextureEffect.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698