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

Side by Side Diff: src/effects/SkMatrixConvolutionImageFilter.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 2012 The Android Open Source Project 2 * Copyright 2012 The Android Open Source Project
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 "SkMatrixConvolutionImageFilter.h" 8 #include "SkMatrixConvolutionImageFilter.h"
9 #include "SkBitmap.h" 9 #include "SkBitmap.h"
10 #include "SkColorPriv.h" 10 #include "SkColorPriv.h"
11 #include "SkReadBuffer.h" 11 #include "SkReadBuffer.h"
12 #include "SkWriteBuffer.h" 12 #include "SkWriteBuffer.h"
13 #include "SkRect.h" 13 #include "SkRect.h"
14 #include "SkUnPreMultiply.h" 14 #include "SkUnPreMultiply.h"
15 15
16 #if SK_SUPPORT_GPU 16 #if SK_SUPPORT_GPU
17 #include "gl/GrGLEffect.h" 17 #include "gl/GrGLEffect.h"
18 #include "gl/GrGLShaderBuilder.h"
18 #include "effects/GrSingleTextureEffect.h" 19 #include "effects/GrSingleTextureEffect.h"
19 #include "GrTBackendEffectFactory.h" 20 #include "GrTBackendEffectFactory.h"
20 #include "GrTexture.h" 21 #include "GrTexture.h"
21 #include "SkMatrix.h" 22 #include "SkMatrix.h"
22 #endif 23 #endif
23 24
24 static bool tile_mode_is_valid(SkMatrixConvolutionImageFilter::TileMode tileMode ) { 25 static bool tile_mode_is_valid(SkMatrixConvolutionImageFilter::TileMode tileMode ) {
25 switch (tileMode) { 26 switch (tileMode) {
26 case SkMatrixConvolutionImageFilter::kClamp_TileMode: 27 case SkMatrixConvolutionImageFilter::kClamp_TileMode:
27 case SkMatrixConvolutionImageFilter::kRepeat_TileMode: 28 case SkMatrixConvolutionImageFilter::kRepeat_TileMode:
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
676 fBias, 677 fBias,
677 fKernelOffset, 678 fKernelOffset,
678 fTileMode, 679 fTileMode,
679 fConvolveAlpha); 680 fConvolveAlpha);
680 return true; 681 return true;
681 } 682 }
682 683
683 /////////////////////////////////////////////////////////////////////////////// 684 ///////////////////////////////////////////////////////////////////////////////
684 685
685 #endif 686 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698