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

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

Issue 418223009: 2D kernel initial wiring for Guassian (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback inc Created 6 years, 4 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"
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 } 342 }
343 SkASSERT(fKernelSize.width() * fKernelSize.height() <= MAX_KERNEL_SIZE); 343 SkASSERT(fKernelSize.width() * fKernelSize.height() <= MAX_KERNEL_SIZE);
344 *effect = GrMatrixConvolutionEffect::Create(texture, 344 *effect = GrMatrixConvolutionEffect::Create(texture,
345 bounds, 345 bounds,
346 fKernelSize, 346 fKernelSize,
347 fKernel, 347 fKernel,
348 fGain, 348 fGain,
349 fBias, 349 fBias,
350 fKernelOffset, 350 fKernelOffset,
351 convert_tilemodes(fTileMode), 351 convert_tilemodes(fTileMode),
352 fConvolveAlpha); 352 fConvolveAlpha,
353 true);
353 return true; 354 return true;
354 } 355 }
355 #endif 356 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698