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

Unified Diff: skia/ext/lazy_pixel_ref_utils_unittest.cc

Issue 31613002: Update unit tests after SkFlattenable::getFactory const-ification. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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 | « cc/test/skia_common.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: skia/ext/lazy_pixel_ref_utils_unittest.cc
diff --git a/skia/ext/lazy_pixel_ref_utils_unittest.cc b/skia/ext/lazy_pixel_ref_utils_unittest.cc
index c3a2e2725e387b461b955039c98519e3e59611df..054613341fd13b5e09faa65d2f0a1d478abd064f 100644
--- a/skia/ext/lazy_pixel_ref_utils_unittest.cc
+++ b/skia/ext/lazy_pixel_ref_utils_unittest.cc
@@ -29,7 +29,7 @@ class TestPixelRef : public SkPixelRef {
TestPixelRef(int width, int height);
virtual ~TestPixelRef();
- virtual SkFlattenable::Factory getFactory() OVERRIDE;
+ virtual SkFlattenable::Factory getFactory() const OVERRIDE;
virtual void* onLockPixels(SkColorTable** color_table) OVERRIDE;
virtual void onUnlockPixels() OVERRIDE {}
virtual SkPixelRef* deepCopy(SkBitmap::Config config, const SkIRect* subset)
@@ -44,7 +44,7 @@ class TestLazyPixelRef : public skia::LazyPixelRef {
TestLazyPixelRef(int width, int height);
virtual ~TestLazyPixelRef();
- virtual SkFlattenable::Factory getFactory() OVERRIDE;
+ virtual SkFlattenable::Factory getFactory() const OVERRIDE;
virtual void* onLockPixels(SkColorTable** color_table) OVERRIDE;
virtual void onUnlockPixels() OVERRIDE {}
virtual bool PrepareToDecode(const PrepareParams& params) OVERRIDE;
@@ -94,7 +94,7 @@ TestPixelRef::TestPixelRef(int width, int height)
TestPixelRef::~TestPixelRef() {}
-SkFlattenable::Factory TestPixelRef::getFactory() { return NULL; }
+SkFlattenable::Factory TestPixelRef::getFactory() const { return NULL; }
void* TestPixelRef::onLockPixels(SkColorTable** color_table) {
return pixels_.get();
@@ -111,7 +111,7 @@ TestLazyPixelRef::TestLazyPixelRef(int width, int height)
TestLazyPixelRef::~TestLazyPixelRef() {}
-SkFlattenable::Factory TestLazyPixelRef::getFactory() { return NULL; }
+SkFlattenable::Factory TestLazyPixelRef::getFactory() const { return NULL; }
void* TestLazyPixelRef::onLockPixels(SkColorTable** color_table) {
return pixels_.get();
« no previous file with comments | « cc/test/skia_common.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698