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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |
OLD | NEW |