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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 | 253 |
254 #include "SkAlphaThresholdFilter.h" | 254 #include "SkAlphaThresholdFilter.h" |
255 #include "SkLightingImageFilter.h" | 255 #include "SkLightingImageFilter.h" |
256 #include "SkMagnifierImageFilter.h" | 256 #include "SkMagnifierImageFilter.h" |
257 #include "SkColorMatrixFilter.h" | 257 #include "SkColorMatrixFilter.h" |
258 | 258 |
259 void forceLinking(); | 259 void forceLinking(); |
260 | 260 |
261 void forceLinking() { | 261 void forceLinking() { |
262 SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0); | 262 SkLightingImageFilter::CreateDistantLitDiffuse(SkPoint3(0,0,0), 0, 0, 0); |
263 SkAlphaThresholdFilter::Create(SkRegion(), .5, .5); | 263 SkAlphaThresholdFilter::Create(SkRegion(), .5f, .5f); |
264 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); | 264 SkMagnifierImageFilter mag(SkRect::MakeWH(SK_Scalar1, SK_Scalar1), SK_Scalar
1); |
265 GrConfigConversionEffect::Create(NULL, | 265 GrConfigConversionEffect::Create(NULL, |
266 false, | 266 false, |
267 GrConfigConversionEffect::kNone_PMConversio
n, | 267 GrConfigConversionEffect::kNone_PMConversio
n, |
268 SkMatrix::I()); | 268 SkMatrix::I()); |
269 SkScalar matrix[20]; | 269 SkScalar matrix[20]; |
270 SkColorMatrixFilter cmf(matrix); | 270 SkColorMatrixFilter cmf(matrix); |
271 } | 271 } |
272 | 272 |
273 #endif | 273 #endif |
OLD | NEW |