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

Side by Side Diff: tests/ImageFilterTest.cpp

Issue 1842753002: Style bikeshed - remove extraneous whitespace (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « tests/ImageFilterCacheTest.cpp ('k') | tests/MatrixTest.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
2 /* 1 /*
3 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
4 * 3 *
5 * 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
6 * found in the LICENSE file. 5 * found in the LICENSE file.
7 */ 6 */
8 7
9 #include "SkBitmap.h" 8 #include "SkBitmap.h"
10 #include "SkBitmapDevice.h" 9 #include "SkBitmapDevice.h"
11 #include "SkBlurImageFilter.h" 10 #include "SkBlurImageFilter.h"
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 559
561 #if SK_SUPPORT_GPU 560 #if SK_SUPPORT_GPU
562 static void run_gpu_test(skiatest::Reporter* reporter, 561 static void run_gpu_test(skiatest::Reporter* reporter,
563 GrContext* context, 562 GrContext* context,
564 int widthHeight, 563 int widthHeight,
565 PFTest test) { 564 PFTest test) {
566 const SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); 565 const SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType);
567 566
568 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, 567 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context,
569 SkBudgeted::kNo, 568 SkBudgeted::kNo,
570 SkImageInfo::MakeN32Pre mul(widthHeight, 569 SkImageInfo::MakeN32Pre mul(widthHeight,
571 widthHeight), 570 widthHeight),
572 0, 571 0,
573 &props, 572 &props,
574 SkGpuDevice::kUninit_In itContents)); 573 SkGpuDevice::kUninit_In itContents));
575 SkImageFilter::DeviceProxy proxy(device); 574 SkImageFilter::DeviceProxy proxy(device);
576 575
577 (*test)(&proxy, reporter, context); 576 (*test)(&proxy, reporter, context);
578 } 577 }
579 #endif 578 #endif
580 579
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 1589
1591 test_xfermode_cropped_input(&canvas, reporter); 1590 test_xfermode_cropped_input(&canvas, reporter);
1592 } 1591 }
1593 1592
1594 DEF_GPUTEST_FOR_ALL_CONTEXTS(BlurLargeImage_Gpu, reporter, context) { 1593 DEF_GPUTEST_FOR_ALL_CONTEXTS(BlurLargeImage_Gpu, reporter, context) {
1595 auto surface(SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, 1594 auto surface(SkSurface::MakeRenderTarget(context, SkBudgeted::kYes,
1596 SkImageInfo::MakeN32Premul(100, 100 ))); 1595 SkImageInfo::MakeN32Premul(100, 100 )));
1597 test_large_blur_input(reporter, surface->getCanvas()); 1596 test_large_blur_input(reporter, surface->getCanvas());
1598 } 1597 }
1599 #endif 1598 #endif
OLDNEW
« no previous file with comments | « tests/ImageFilterCacheTest.cpp ('k') | tests/MatrixTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698