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

Unified Diff: tests/SurfaceTest.cpp

Issue 1017293002: guarded change to SkImageGenerator to make getInfo() const (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 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
Index: tests/SurfaceTest.cpp
diff --git a/tests/SurfaceTest.cpp b/tests/SurfaceTest.cpp
index 9ce9d5fbe83042e357226fa9a080cac37027c027..6142af9ed12649e02af442bd00189ed4b45f0903 100644
--- a/tests/SurfaceTest.cpp
+++ b/tests/SurfaceTest.cpp
@@ -67,11 +67,8 @@ enum ImageType {
#include "SkImageGenerator.h"
class EmptyGenerator : public SkImageGenerator {
-protected:
- bool onGetInfo(SkImageInfo* info) SK_OVERRIDE {
- *info = SkImageInfo::Make(0, 0, kN32_SkColorType, kPremul_SkAlphaType);
- return true;
- }
+public:
+ EmptyGenerator() : SkImageGenerator(SkImageInfo::MakeN32Premul(0, 0)) {}
};
static void test_empty_image(skiatest::Reporter* reporter) {

Powered by Google App Engine
This is Rietveld 408576698