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

Unified Diff: tests/GpuBitmapCopyTest.cpp

Issue 178003003: Do not define SK_SUPPORT_DEEPCOPYTO_CONFIG in Skia. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: fix error of unused-function 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/core/SkBitmap.h ('k') | tools/render_pdfs_main.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/GpuBitmapCopyTest.cpp
diff --git a/tests/GpuBitmapCopyTest.cpp b/tests/GpuBitmapCopyTest.cpp
index af3fbdacbfcba0f0ef1ecfe18de87152c3e140bb..bf22ea7e463d8d1b7a3e3803e739afb3f8ed6583 100644
--- a/tests/GpuBitmapCopyTest.cpp
+++ b/tests/GpuBitmapCopyTest.cpp
@@ -19,6 +19,12 @@
#include "SkRect.h"
#include "Test.h"
+struct Pair {
+ SkColorType fColorType;
+ const char* fValid;
+};
+
+#ifdef SK_SUPPORT_DEEPCOPYTO_CONFIG
static const char* boolStr(bool value) {
return value ? "true" : "false";
}
@@ -28,11 +34,6 @@ static const char* gColorTypeName[] = {
"None", "8888"
};
-struct Pair {
- SkColorType fColorType;
- const char* fValid;
-};
-
/**
* Check to ensure that copying a GPU-backed SkBitmap behaved as expected.
* @param reporter Used to report failures.
@@ -99,6 +100,7 @@ static void TestIndividualCopy(skiatest::Reporter* reporter, const SkColorType d
}
}
+#endif
// Stripped down version of TestBitmapCopy that checks basic fields (width, height, config, genID)
// to ensure that they were copied properly.
« no previous file with comments | « include/core/SkBitmap.h ('k') | tools/render_pdfs_main.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698