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

Unified Diff: experimental/skpdiff/SkImageDiffer.h

Issue 19374006: make OpenCL optional for skpdiff (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: this-> Created 7 years, 5 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 | « experimental/skpdiff/SkDifferentPixelsMetric_opencl.cpp ('k') | experimental/skpdiff/diff_pixels.cl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/skpdiff/SkImageDiffer.h
diff --git a/experimental/skpdiff/SkImageDiffer.h b/experimental/skpdiff/SkImageDiffer.h
index c06538df1766f769d99f786f27aea0303493d178..6c570cbb8e41bc3d8437937047f55396cd262258 100644
--- a/experimental/skpdiff/SkImageDiffer.h
+++ b/experimental/skpdiff/SkImageDiffer.h
@@ -32,6 +32,11 @@ public:
bool isGood() { return fIsGood; }
/**
+ * Gets if this differ needs to be initialized with and OpenCL device and context.
+ */
+ virtual bool requiresOpenCL() { return false; }
+
+ /**
* Wraps a call to queueDiff by loading the given filenames into SkBitmaps
* @param baseline The file path of the baseline image
* @param test The file path of the test image
« no previous file with comments | « experimental/skpdiff/SkDifferentPixelsMetric_opencl.cpp ('k') | experimental/skpdiff/diff_pixels.cl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698