Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: tests/ImageFilterTest.cpp

Issue 168653002: Change device factories to take SkImageInfo instead of SkBitmap::Config (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix PdfViewer Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/GpuBitmapCopyTest.cpp ('k') | tests/LayerDrawLooperTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « tests/GpuBitmapCopyTest.cpp ('k') | tests/LayerDrawLooperTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698