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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 182983003: Factory methods for heap-allocated SkImageFilter objects. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Rebase Created 6 years, 9 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 | « src/effects/SkPictureImageFilter.cpp ('k') | tests/ImageFilterTest.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 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 // This is a GPU-backend specific test. It relies on static intializers to work 9 // This is a GPU-backend specific test. It relies on static intializers to work
10 10
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 #include "SkAlphaThresholdFilter.h" 250 #include "SkAlphaThresholdFilter.h"
251 #include "SkColorMatrixFilter.h" 251 #include "SkColorMatrixFilter.h"
252 #include "SkLightingImageFilter.h" 252 #include "SkLightingImageFilter.h"
253 #include "SkMagnifierImageFilter.h" 253 #include "SkMagnifierImageFilter.h"
254 254
255 void forceLinking(); 255 void forceLinking();
256 256
257 void forceLinking() { 257 void forceLinking() {
258 SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0); 258 SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0);
259 SkAlphaThresholdFilter::Create(SkRegion(), .5f, .5f); 259 SkAlphaThresholdFilter::Create(SkRegion(), .5f, .5f);
260 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar 1); 260 SkAutoTUnref<SkMagnifierImageFilter> mag(SkMagnifierImageFilter::Create(
261 SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1));
261 GrConfigConversionEffect::Create(NULL, 262 GrConfigConversionEffect::Create(NULL,
262 false, 263 false,
263 GrConfigConversionEffect::kNone_PMConversio n, 264 GrConfigConversionEffect::kNone_PMConversio n,
264 SkMatrix::I()); 265 SkMatrix::I());
265 SkScalar matrix[20]; 266 SkScalar matrix[20];
266 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix)); 267 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix));
267 } 268 }
268 269
269 #endif 270 #endif
OLDNEW
« no previous file with comments | « src/effects/SkPictureImageFilter.cpp ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698