| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkBicubicImageFilter.h" | 8 #include "SkBicubicImageFilter.h" |
| 9 #include "SkBitmap.h" | 9 #include "SkBitmap.h" |
| 10 #include "SkBitmapDevice.h" | 10 #include "SkBitmapDevice.h" |
| (...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 } | 223 } |
| 224 | 224 |
| 225 DEF_TEST(ImageFilterCropRect, reporter) { | 225 DEF_TEST(ImageFilterCropRect, reporter) { |
| 226 SkBitmap temp; | 226 SkBitmap temp; |
| 227 temp.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); | 227 temp.setConfig(SkBitmap::kARGB_8888_Config, 100, 100); |
| 228 temp.allocPixels(); | 228 temp.allocPixels(); |
| 229 SkBitmapDevice device(temp); | 229 SkBitmapDevice device(temp); |
| 230 test_crop_rects(&device, reporter); | 230 test_crop_rects(&device, reporter); |
| 231 } | 231 } |
| 232 | 232 |
| 233 #if SK_SUPPORT_GPU |
| 233 DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { | 234 DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { |
| 234 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); | 235 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); |
| 235 SkGpuDevice device(context, SkBitmap::kARGB_8888_Config, 100, 100); | 236 SkGpuDevice device(context, SkBitmap::kARGB_8888_Config, 100, 100); |
| 236 test_crop_rects(&device, reporter); | 237 test_crop_rects(&device, reporter); |
| 237 } | 238 } |
| 239 #endif |
| OLD | NEW |