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

Unified Diff: tests/TestingSpecialImageAccess.h

Issue 1762013002: Swap over to using SkImageFilter::filterImage instead of filterImageDeprecated (Closed) Base URL: https://skia.googlesource.com/skia.git@if-fragment
Patch Set: Fix no-GPU build Created 4 years, 9 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 | « tests/SpecialImageTest.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/TestingSpecialImageAccess.h
diff --git a/tests/TestingSpecialImageAccess.h b/tests/TestingSpecialImageAccess.h
new file mode 100644
index 0000000000000000000000000000000000000000..cd9d77c7ff06fe0d3f031c4d82e0a45381ecc8fb
--- /dev/null
+++ b/tests/TestingSpecialImageAccess.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file
+ */
+
+#ifndef TestingSpecialImageAccess_DEFINED
+#define TestingSpecialImageAccess_DEFINED
+
+class TestingSpecialImageAccess {
+public:
+ static const SkIRect& Subset(const SkSpecialImage* img) {
+ return img->subset();
+ }
+
+ static bool PeekPixels(const SkSpecialImage* img, SkPixmap* pixmap) {
+ return img->testingOnlyPeekPixels(pixmap);
+ }
+
+ static GrTexture* PeekTexture(const SkSpecialImage* img) {
+ return img->peekTexture();
+ }
+
+ static bool GetROPixels(const SkSpecialImage* img, SkBitmap* result) {
+ return img->testingOnlyGetROPixels(result);
+ }
+};
+
+#endif
« no previous file with comments | « tests/SpecialImageTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698