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

Side by Side Diff: src/gpu/effects/GrDitherEffect.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
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 "GrDitherEffect.h" 8 #include "GrDitherEffect.h"
9 #include "GrFragmentProcessor.h" 9 #include "GrFragmentProcessor.h"
10 #include "GrInvariantOutput.h" 10 #include "GrInvariantOutput.h"
11 #include "SkRect.h" 11 #include "SkRect.h"
12 #include "gl/GrGLProcessor.h" 12 #include "gl/GrGLFragmentProcessor.h"
13 #include "gl/builders/GrGLProgramBuilder.h" 13 #include "gl/builders/GrGLProgramBuilder.h"
14 14
15 ////////////////////////////////////////////////////////////////////////////// 15 //////////////////////////////////////////////////////////////////////////////
16 16
17 class DitherEffect : public GrFragmentProcessor { 17 class DitherEffect : public GrFragmentProcessor {
18 public: 18 public:
19 static GrFragmentProcessor* Create() { 19 static GrFragmentProcessor* Create() {
20 GR_CREATE_STATIC_PROCESSOR(gDitherEffect, DitherEffect, ()) 20 GR_CREATE_STATIC_PROCESSOR(gDitherEffect, DitherEffect, ())
21 return SkRef(gDitherEffect); 21 return SkRef(gDitherEffect);
22 } 22 }
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 void DitherEffect::getGLProcessorKey(const GrGLSLCaps& caps, 105 void DitherEffect::getGLProcessorKey(const GrGLSLCaps& caps,
106 GrProcessorKeyBuilder* b) const { 106 GrProcessorKeyBuilder* b) const {
107 GLDitherEffect::GenKey(*this, caps, b); 107 GLDitherEffect::GenKey(*this, caps, b);
108 } 108 }
109 109
110 GrGLFragmentProcessor* DitherEffect::createGLInstance() const { 110 GrGLFragmentProcessor* DitherEffect::createGLInstance() const {
111 return SkNEW_ARGS(GLDitherEffect, (*this)); 111 return SkNEW_ARGS(GLDitherEffect, (*this));
112 } 112 }
113 113
114 GrFragmentProcessor* GrDitherEffect::Create() { return DitherEffect::Create(); } 114 GrFragmentProcessor* GrDitherEffect::Create() { return DitherEffect::Create(); }
OLDNEW
« no previous file with comments | « src/gpu/effects/GrDistanceFieldGeoProc.cpp ('k') | src/gpu/effects/GrMatrixConvolutionEffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698