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

Side by Side Diff: tests/ImageFilterTest.cpp

Issue 319043005: Support using OpenGL ES context on desktop (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 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
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 719 matching lines...) Expand 10 before | Expand all | Expand 10 after
730 730
731 DEF_TEST(XfermodeImageFilterCroppedInput, reporter) { 731 DEF_TEST(XfermodeImageFilterCroppedInput, reporter) {
732 SkBitmap temp; 732 SkBitmap temp;
733 temp.allocN32Pixels(100, 100); 733 temp.allocN32Pixels(100, 100);
734 SkBitmapDevice device(temp); 734 SkBitmapDevice device(temp);
735 test_xfermode_cropped_input(&device, reporter); 735 test_xfermode_cropped_input(&device, reporter);
736 } 736 }
737 737
738 #if SK_SUPPORT_GPU 738 #if SK_SUPPORT_GPU
739 DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { 739 DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) {
740 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0)); 740 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0),
741 kNone_GrGLStandard);
741 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, 742 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context,
742 SkImageInfo::MakeN32Pre mul(100, 100), 743 SkImageInfo::MakeN32Pre mul(100, 100),
743 0)); 744 0));
744 test_crop_rects(device, reporter); 745 test_crop_rects(device, reporter);
745 } 746 }
746 747
747 DEF_GPUTEST(HugeBlurImageFilterGPU, reporter, factory) { 748 DEF_GPUTEST(HugeBlurImageFilterGPU, reporter, factory) {
robertphillips 2014/06/09 14:31:05 nits: this and the next are overlength
Kimmo Kinnunen 2014/06/16 12:36:40 Done.
748 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0)); 749 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0), kNone_GrGLStandard);
749 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, 750 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context,
750 SkImageInfo::MakeN32Pre mul(100, 100), 751 SkImageInfo::MakeN32Pre mul(100, 100),
751 0)); 752 0));
752 test_huge_blur(device, reporter); 753 test_huge_blur(device, reporter);
753 } 754 }
754 755
755 DEF_GPUTEST(XfermodeImageFilterCroppedInputGPU, reporter, factory) { 756 DEF_GPUTEST(XfermodeImageFilterCroppedInputGPU, reporter, factory) {
756 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0)); 757 GrContext* context = factory->get(static_cast<GrContextFactory::GLContextTyp e>(0), kNone_GrGLStandard);
757 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, 758 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context,
758 SkImageInfo::MakeN32Pre mul(1, 1), 759 SkImageInfo::MakeN32Pre mul(1, 1),
759 0)); 760 0));
760 test_xfermode_cropped_input(device, reporter); 761 test_xfermode_cropped_input(device, reporter);
761 } 762 }
762 #endif 763 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698