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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
289 recordingCanvas->restore(); // scale | 289 recordingCanvas->restore(); // scale |
290 recordingCanvas->restore(); // saveLayer | 290 recordingCanvas->restore(); // saveLayer |
291 picture.endRecording(); | 291 picture.endRecording(); |
292 | 292 |
293 canvas.drawPicture(picture); | 293 canvas.drawPicture(picture); |
294 } | 294 } |
295 | 295 |
296 #if SK_SUPPORT_GPU | 296 #if SK_SUPPORT_GPU |
297 DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { | 297 DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { |
298 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); | 298 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp
e>(0)); |
299 SkGpuDevice device(context, SkBitmap::kARGB_8888_Config, 100, 100); | 299 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |
300 test_crop_rects(&device, reporter); | 300 SkImageInfo::MakeN32Pre
mul(100, 100), |
| 301 0)); |
| 302 test_crop_rects(device, reporter); |
301 } | 303 } |
302 #endif | 304 #endif |
OLD | NEW |