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

Side by Side Diff: tests/GLProgramsTest.cpp

Issue 395603002: Simplify flattening to just write enough to call the factory (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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
« no previous file with comments | « src/ports/SkGlobalInitialization_default.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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 #include "SkAlphaThresholdFilter.h" 267 #include "SkAlphaThresholdFilter.h"
268 #include "SkColorMatrixFilter.h" 268 #include "SkColorMatrixFilter.h"
269 #include "SkLightingImageFilter.h" 269 #include "SkLightingImageFilter.h"
270 #include "SkMagnifierImageFilter.h" 270 #include "SkMagnifierImageFilter.h"
271 271
272 void forceLinking(); 272 void forceLinking();
273 273
274 void forceLinking() { 274 void forceLinking() {
275 SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0); 275 SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0);
276 SkAlphaThresholdFilter::Create(SkRegion(), .5f, .5f); 276 SkAlphaThresholdFilter::Create(SkRegion(), .5f, .5f);
277 SkAutoTUnref<SkMagnifierImageFilter> mag(SkMagnifierImageFilter::Create( 277 SkAutoTUnref<SkImageFilter> mag(SkMagnifierImageFilter::Create(
278 SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1)); 278 SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar1));
279 GrConfigConversionEffect::Create(NULL, 279 GrConfigConversionEffect::Create(NULL,
280 false, 280 false,
281 GrConfigConversionEffect::kNone_PMConversio n, 281 GrConfigConversionEffect::kNone_PMConversio n,
282 SkMatrix::I()); 282 SkMatrix::I());
283 SkScalar matrix[20]; 283 SkScalar matrix[20];
284 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix)); 284 SkAutoTUnref<SkColorMatrixFilter> cmf(SkColorMatrixFilter::Create(matrix));
285 } 285 }
286 286
287 #endif 287 #endif
OLDNEW
« no previous file with comments | « src/ports/SkGlobalInitialization_default.cpp ('k') | tests/ImageFilterTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698