aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2016-06-13 12:13:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-06-13 12:13:03 -0700
commitd490708198e7129a85a070d15869aca469deb797 (patch)
treef0f96904188303e217f5d52b644969eec981a7c3 /tests
parent12386d591c46da098c211a74c7cd65e8ac74b6fb (diff)
Move create_image_large in ImageTest.cpp inside #if SK_SUPPORT_GPU
Diffstat (limited to 'tests')
-rw-r--r--tests/ImageTest.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/tests/ImageTest.cpp b/tests/ImageTest.cpp
index 3544764782..4d64b2364c 100644
--- a/tests/ImageTest.cpp
+++ b/tests/ImageTest.cpp
@@ -68,16 +68,6 @@ static sk_sp<SkImage> create_image() {
draw_image_test_pattern(surface->getCanvas());
return surface->makeImageSnapshot();
}
-static sk_sp<SkImage> create_image_large() {
- const SkImageInfo info = SkImageInfo::MakeN32(32000, 32, kOpaque_SkAlphaType);
- auto surface(SkSurface::MakeRaster(info));
- surface->getCanvas()->clear(SK_ColorWHITE);
- SkPaint paint;
- paint.setColor(SK_ColorBLACK);
- surface->getCanvas()->drawRect(SkRect::MakeXYWH(4000, 2, 28000, 30), paint);
- return surface->makeImageSnapshot();
-}
-
static SkData* create_image_data(SkImageInfo* info) {
*info = SkImageInfo::MakeN32(20, 20, kOpaque_SkAlphaType);
const size_t rowBytes = info->minRowBytes();
@@ -102,6 +92,15 @@ static sk_sp<SkImage> create_image_565() {
draw_image_test_pattern(surface->getCanvas());
return surface->makeImageSnapshot();
}
+static sk_sp<SkImage> create_image_large() {
+ const SkImageInfo info = SkImageInfo::MakeN32(32000, 32, kOpaque_SkAlphaType);
+ auto surface(SkSurface::MakeRaster(info));
+ surface->getCanvas()->clear(SK_ColorWHITE);
+ SkPaint paint;
+ paint.setColor(SK_ColorBLACK);
+ surface->getCanvas()->drawRect(SkRect::MakeXYWH(4000, 2, 28000, 30), paint);
+ return surface->makeImageSnapshot();
+}
static sk_sp<SkImage> create_image_ct() {
SkPMColor colors[] = {
SkPreMultiplyARGB(0xFF, 0xFF, 0xFF, 0x00),