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

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

Issue 1490283004: Create GLSLUniformHandler class for gpu backend (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: clean up public api of uniformhandler Created 5 years 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/GrTextureDomain.cpp ('k') | src/gpu/effects/GrYUVtoRGBEffect.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 "GrInvariantOutput.h"
11 #include "effects/GrConstColorProcessor.h" 12 #include "effects/GrConstColorProcessor.h"
12 #include "glsl/GrGLSLFragmentProcessor.h" 13 #include "glsl/GrGLSLFragmentProcessor.h"
13 #include "glsl/GrGLSLBlend.h" 14 #include "glsl/GrGLSLBlend.h"
14 #include "glsl/GrGLSLFragmentShaderBuilder.h" 15 #include "glsl/GrGLSLFragmentShaderBuilder.h"
15 #include "glsl/GrGLSLProgramBuilder.h"
16 #include "SkGrPriv.h" 16 #include "SkGrPriv.h"
17 17
18 class ComposeTwoFragmentProcessor : public GrFragmentProcessor { 18 class ComposeTwoFragmentProcessor : public GrFragmentProcessor {
19 public: 19 public:
20 ComposeTwoFragmentProcessor(const GrFragmentProcessor* src, const GrFragment Processor* dst, 20 ComposeTwoFragmentProcessor(const GrFragmentProcessor* src, const GrFragment Processor* dst,
21 SkXfermode::Mode mode) 21 SkXfermode::Mode mode)
22 : fMode(mode) { 22 : fMode(mode) {
23 this->initClassID<ComposeTwoFragmentProcessor>(); 23 this->initClassID<ComposeTwoFragmentProcessor>();
24 SkDEBUGCODE(int shaderAChildIndex = )this->registerChildProcessor(src); 24 SkDEBUGCODE(int shaderAChildIndex = )this->registerChildProcessor(src);
25 SkDEBUGCODE(int shaderBChildIndex = )this->registerChildProcessor(dst); 25 SkDEBUGCODE(int shaderBChildIndex = )this->registerChildProcessor(dst);
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 case SkXfermode::kClear_Mode: 303 case SkXfermode::kClear_Mode:
304 return GrConstColorProcessor::Create(GrColor_TRANSPARENT_BLACK, 304 return GrConstColorProcessor::Create(GrColor_TRANSPARENT_BLACK,
305 GrConstColorProcessor::kIgnore_ InputMode); 305 GrConstColorProcessor::kIgnore_ InputMode);
306 case SkXfermode::kDst_Mode: 306 case SkXfermode::kDst_Mode:
307 return nullptr; 307 return nullptr;
308 default: 308 default:
309 return new ComposeOneFragmentProcessor(src, mode, 309 return new ComposeOneFragmentProcessor(src, mode,
310 ComposeOneFragmentProcessor:: kSrc_Child); 310 ComposeOneFragmentProcessor:: kSrc_Child);
311 } 311 }
312 } 312 }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrTextureDomain.cpp ('k') | src/gpu/effects/GrYUVtoRGBEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698