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

Side by Side Diff: src/effects/SkAlphaThresholdFilter.cpp

Issue 356513003: Step towards variable length effect keys. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: tweak comment Created 6 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 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 30 matching lines...) Expand all
41 SkScalar outerThreshold, 41 SkScalar outerThreshold,
42 SkImageFilter* input) { 42 SkImageFilter* input) {
43 return SkNEW_ARGS(SkAlphaThresholdFilterImpl, (region, innerThreshold, outer Threshold, input)); 43 return SkNEW_ARGS(SkAlphaThresholdFilterImpl, (region, innerThreshold, outer Threshold, input));
44 } 44 }
45 45
46 #if SK_SUPPORT_GPU 46 #if SK_SUPPORT_GPU
47 #include "GrContext.h" 47 #include "GrContext.h"
48 #include "GrCoordTransform.h" 48 #include "GrCoordTransform.h"
49 #include "GrEffect.h" 49 #include "GrEffect.h"
50 #include "gl/GrGLEffect.h" 50 #include "gl/GrGLEffect.h"
51 #include "gl/GrGLShaderBuilder.h"
51 #include "GrTBackendEffectFactory.h" 52 #include "GrTBackendEffectFactory.h"
52 #include "GrTextureAccess.h" 53 #include "GrTextureAccess.h"
53 54
54 #include "SkGr.h" 55 #include "SkGr.h"
55 56
56 class GrGLAlphaThresholdEffect; 57 class GrGLAlphaThresholdEffect;
57 58
58 class AlphaThresholdEffect : public GrEffect { 59 class AlphaThresholdEffect : public GrEffect {
59 60
60 public: 61 public:
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 (U8CPU)(SkColorGetG(source) * scale), 360 (U8CPU)(SkColorGetG(source) * scale),
360 (U8CPU)(SkColorGetB(source) * scale)); 361 (U8CPU)(SkColorGetB(source) * scale));
361 } 362 }
362 } 363 }
363 dptr[y * dst->width() + x] = output_color; 364 dptr[y * dst->width() + x] = output_color;
364 } 365 }
365 } 366 }
366 367
367 return true; 368 return true;
368 } 369 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698