OLD | NEW |
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 Loading... |
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 |
OLD | NEW |