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

Side by Side Diff: src/gpu/effects/GrXfermodeFragmentProcessor.cpp

Issue 1397123002: Move functions from SkGr to SkGrPriv.h (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 9th time's a charm? Created 5 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/GrTextureStripAtlas.cpp ('k') | src/image/SkImageShader.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 2015 Google Inc. 2 * Copyright 2015 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 "effects/GrXfermodeFragmentProcessor.h" 8 #include "effects/GrXfermodeFragmentProcessor.h"
9 9
10 #include "GrFragmentProcessor.h" 10 #include "GrFragmentProcessor.h"
11 #include "effects/GrConstColorProcessor.h" 11 #include "effects/GrConstColorProcessor.h"
12 #include "gl/GrGLSLBlend.h" 12 #include "gl/GrGLSLBlend.h"
13 #include "gl/builders/GrGLProgramBuilder.h" 13 #include "gl/builders/GrGLProgramBuilder.h"
14 #include "SkGr.h" 14 #include "SkGrPriv.h"
15 15
16 class ComposeTwoFragmentProcessor : public GrFragmentProcessor { 16 class ComposeTwoFragmentProcessor : public GrFragmentProcessor {
17 public: 17 public:
18 ComposeTwoFragmentProcessor(const GrFragmentProcessor* src, const GrFragment Processor* dst, 18 ComposeTwoFragmentProcessor(const GrFragmentProcessor* src, const GrFragment Processor* dst,
19 SkXfermode::Mode mode) 19 SkXfermode::Mode mode)
20 : fMode(mode) { 20 : fMode(mode) {
21 this->initClassID<ComposeTwoFragmentProcessor>(); 21 this->initClassID<ComposeTwoFragmentProcessor>();
22 SkDEBUGCODE(int shaderAChildIndex = )this->registerChildProcessor(src); 22 SkDEBUGCODE(int shaderAChildIndex = )this->registerChildProcessor(src);
23 SkDEBUGCODE(int shaderBChildIndex = )this->registerChildProcessor(dst); 23 SkDEBUGCODE(int shaderBChildIndex = )this->registerChildProcessor(dst);
24 SkASSERT(0 == shaderAChildIndex); 24 SkASSERT(0 == shaderAChildIndex);
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 case SkXfermode::kClear_Mode: 288 case SkXfermode::kClear_Mode:
289 return GrConstColorProcessor::Create(GrColor_TRANSPARENT_BLACK, 289 return GrConstColorProcessor::Create(GrColor_TRANSPARENT_BLACK,
290 GrConstColorProcessor::kIgnore_ InputMode); 290 GrConstColorProcessor::kIgnore_ InputMode);
291 case SkXfermode::kDst_Mode: 291 case SkXfermode::kDst_Mode:
292 return nullptr; 292 return nullptr;
293 default: 293 default:
294 return new ComposeOneFragmentProcessor(src, mode, 294 return new ComposeOneFragmentProcessor(src, mode,
295 ComposeOneFragmentProcessor:: kSrc_Child); 295 ComposeOneFragmentProcessor:: kSrc_Child);
296 } 296 }
297 } 297 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrTextureStripAtlas.cpp ('k') | src/image/SkImageShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698