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

Side by Side Diff: tests/ImageFilterTest.cpp

Issue 132503006: Fix skia_gpu=0 build. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Fix GPU-less builds 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 | « no previous file | no next file » | 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 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698