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

Side by Side Diff: src/effects/SkAlphaThresholdFilter.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 | « no previous file | src/effects/SkArithmeticMode_gpu.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 2013 Google Inc. 2 * Copyright 2013 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 "SkAlphaThresholdFilter.h" 8 #include "SkAlphaThresholdFilter.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkReadBuffer.h" 10 #include "SkReadBuffer.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #if SK_SUPPORT_GPU 49 #if SK_SUPPORT_GPU
50 #include "GrContext.h" 50 #include "GrContext.h"
51 #include "GrCoordTransform.h" 51 #include "GrCoordTransform.h"
52 #include "GrFragmentProcessor.h" 52 #include "GrFragmentProcessor.h"
53 #include "GrInvariantOutput.h" 53 #include "GrInvariantOutput.h"
54 #include "GrTextureAccess.h" 54 #include "GrTextureAccess.h"
55 #include "effects/GrPorterDuffXferProcessor.h" 55 #include "effects/GrPorterDuffXferProcessor.h"
56 56
57 #include "SkGr.h" 57 #include "SkGr.h"
58 58
59 #include "gl/GrGLProcessor.h" 59 #include "gl/GrGLFragmentProcessor.h"
60 #include "gl/builders/GrGLProgramBuilder.h" 60 #include "gl/builders/GrGLProgramBuilder.h"
61 61
62 class AlphaThresholdEffect : public GrFragmentProcessor { 62 class AlphaThresholdEffect : public GrFragmentProcessor {
63 63
64 public: 64 public:
65 static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager, 65 static GrFragmentProcessor* Create(GrProcessorDataManager* procDataManager,
66 GrTexture* texture, 66 GrTexture* texture,
67 GrTexture* maskTexture, 67 GrTexture* maskTexture,
68 float innerThreshold, 68 float innerThreshold,
69 float outerThreshold) { 69 float outerThreshold) {
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 } 384 }
385 385
386 #ifndef SK_IGNORE_TO_STRING 386 #ifndef SK_IGNORE_TO_STRING
387 void SkAlphaThresholdFilterImpl::toString(SkString* str) const { 387 void SkAlphaThresholdFilterImpl::toString(SkString* str) const {
388 str->appendf("SkAlphaThresholdImageFilter: ("); 388 str->appendf("SkAlphaThresholdImageFilter: (");
389 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold); 389 str->appendf("inner: %f outer: %f", fInnerThreshold, fOuterThreshold);
390 str->append(")"); 390 str->append(")");
391 } 391 }
392 #endif 392 #endif
393 393
OLDNEW
« no previous file with comments | « no previous file | src/effects/SkArithmeticMode_gpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698