diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-01 23:16:39 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-01 23:16:39 +0000 |
commit | d5d9bc52bdb680caf25f7c7216cd85aa53bec2f7 (patch) | |
tree | a90e3e30b07ad8d9fc0924dd5a4b8823b1e21157 /skia/ext/analysis_canvas_unittest.cc | |
parent | debf51be16b4e30f981f0732f7ad191ca1f7239d (diff) | |
download | chromium_src-d5d9bc52bdb680caf25f7c7216cd85aa53bec2f7.zip chromium_src-d5d9bc52bdb680caf25f7c7216cd85aa53bec2f7.tar.gz chromium_src-d5d9bc52bdb680caf25f7c7216cd85aa53bec2f7.tar.bz2 |
Chromium style checker cleanup
Automated clean up of style checker errors that were missed due to the plugin
not being executed on implementation files.
BUG=115047
Review URL: https://chromiumcodereview.appspot.com/13191010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@191697 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'skia/ext/analysis_canvas_unittest.cc')
-rw-r--r-- | skia/ext/analysis_canvas_unittest.cc | 28 |
1 files changed, 16 insertions, 12 deletions
diff --git a/skia/ext/analysis_canvas_unittest.cc b/skia/ext/analysis_canvas_unittest.cc index f403a59..46c9645 100644 --- a/skia/ext/analysis_canvas_unittest.cc +++ b/skia/ext/analysis_canvas_unittest.cc @@ -23,19 +23,21 @@ namespace skia { class TestPixelRef : public SkPixelRef { public: // Pure virtual implementation. - SkFlattenable::Factory getFactory() { return NULL; } - void* onLockPixels(SkColorTable**) { return NULL; } - void onUnlockPixels() {} + virtual SkFlattenable::Factory getFactory() OVERRIDE { return NULL; } + virtual void* onLockPixels(SkColorTable**) OVERRIDE { return NULL; } + virtual void onUnlockPixels() OVERRIDE {} }; class TestLazyPixelRef : public LazyPixelRef { public: // Pure virtual implementation. - SkFlattenable::Factory getFactory() { return NULL; } - void* onLockPixels(SkColorTable**) { return NULL; } - void onUnlockPixels() {} - bool PrepareToDecode(const PrepareParams& params) { return true; } - void Decode() {} + virtual SkFlattenable::Factory getFactory() OVERRIDE { return NULL; } + virtual void* onLockPixels(SkColorTable**) OVERRIDE { return NULL; } + virtual void onUnlockPixels() OVERRIDE {} + virtual bool PrepareToDecode(const PrepareParams& params) OVERRIDE { + return true; + } + virtual void Decode() OVERRIDE {} }; class TestShader : public SkShader { @@ -44,16 +46,18 @@ class TestShader : public SkShader { : bitmap_(bitmap) { } - SkShader::BitmapType asABitmap(SkBitmap* bitmap, - SkMatrix*, TileMode xy[2]) const { + virtual SkShader::BitmapType asABitmap( + SkBitmap* bitmap, + SkMatrix*, + TileMode xy[2]) const OVERRIDE { if (bitmap) *bitmap = *bitmap_; return SkShader::kDefault_BitmapType; } // Pure virtual implementation. - void shadeSpan(int x, int y, SkPMColor[], int count) {} - SkFlattenable::Factory getFactory() { return NULL; } + virtual void shadeSpan(int x, int y, SkPMColor[], int count) OVERRIDE {} + virtual SkFlattenable::Factory getFactory() OVERRIDE { return NULL; } private: |