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

Unified Diff: tools/skpdiff/SkDifferentPixelsMetric.h

Issue 1502173003: When was SkPDiff last used? (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years 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 | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/skpdiff/SkDifferentPixelsMetric.h
diff --git a/tools/skpdiff/SkDifferentPixelsMetric.h b/tools/skpdiff/SkDifferentPixelsMetric.h
deleted file mode 100644
index 1f39b3552e8e959544a417a534d6a5007ee1c699..0000000000000000000000000000000000000000
--- a/tools/skpdiff/SkDifferentPixelsMetric.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2013 Google Inc.
- *
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-#ifndef SkDifferentPixelsMetric_DEFINED
-#define SkDifferentPixelsMetric_DEFINED
-
-#include "SkTDArray.h"
-
-#if SK_SUPPORT_OPENCL
-#include "SkCLImageDiffer.h"
-#else
-#include "SkImageDiffer.h"
-#endif
-
-/**
- * A differ that measures the percentage of different corresponding pixels. If the two images are
- * not the same size or have no pixels, the result will always be zero.
- */
-class SkDifferentPixelsMetric :
-#if SK_SUPPORT_OPENCL
- public SkCLImageDiffer {
-#else
- public SkImageDiffer {
-#endif
-public:
- const char* getName() const override;
- virtual bool diff(SkBitmap* baseline, SkBitmap* test,
- const BitmapsToCreate& bitmapsToCreate,
- Result* result) const override;
-
-protected:
-#if SK_SUPPORT_OPENCL
- bool onInit() override;
-#endif
-
-private:
-#if SK_SUPPORT_OPENCL
- cl_kernel fKernel;
-
- typedef SkCLImageDiffer INHERITED;
-#else
- typedef SkImageDiffer INHERITED;
-#endif
-};
-
-#endif
« no previous file with comments | « tools/skpdiff/SkDiffContext.cpp ('k') | tools/skpdiff/SkDifferentPixelsMetric_cpu.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698