Move create_image_large in ImageTest.cpp inside #if SK_SUPPORT_GPU
authorbsalomon <bsalomon@google.com>
Mon, 13 Jun 2016 19:13:03 +0000 (12:13 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 13 Jun 2016 19:13:03 +0000 (12:13 -0700)
TBR=egdaniel@google.com
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2062943002

Review-Url: https://codereview.chromium.org/2062943002

tests/ImageTest.cpp

index 354476478259534e45befe5815a06a2df241344f..4d64b2364c216385f2c0e4f5dfbc5b87da6847c2 100644 (file)
@@ -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),