diff options
author | 2012-08-23 18:19:56 +0000 | |
---|---|---|
committer | 2012-08-23 18:19:56 +0000 | |
commit | ae933ce0ea5fd9d21cb6ef2cee7e729d32690aac (patch) | |
tree | 62d80e33b16679d01454cf814977a7030d3a5462 /gm/extractbitmap.cpp | |
parent | d6176b0dcacb124539e0cfd051e6d93a9782f020 (diff) |
Result of running tools/sanitize_source_files.py (which was added in https://codereview.appspot.com/6465078/)
This CL is part III of IV (I broke down the 1280 files into 4 CLs).
Review URL: https://codereview.appspot.com/6475053
git-svn-id: http://skia.googlecode.com/svn/trunk@5264 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm/extractbitmap.cpp')
-rw-r--r-- | gm/extractbitmap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gm/extractbitmap.cpp b/gm/extractbitmap.cpp index 68f6d44e24..59f8a93cb7 100644 --- a/gm/extractbitmap.cpp +++ b/gm/extractbitmap.cpp @@ -29,7 +29,7 @@ static void create_bitmap(SkBitmap* bitmap) { class ExtractBitmapGM : public GM { public: ExtractBitmapGM() {} - + protected: // overrides from SkEventSink virtual SkString onShortName() SK_OVERRIDE { @@ -75,14 +75,14 @@ protected: // Now do the same but with a device bitmap as source image SkAutoTUnref<SkDevice> secondDevice(canvas->createCompatibleDevice( - SkBitmap::kARGB_8888_Config, bitmap.width(), + SkBitmap::kARGB_8888_Config, bitmap.width(), bitmap.height(), true)); SkCanvas secondCanvas(secondDevice.get()); secondCanvas.writePixels(bitmap, 0, 0); SkBitmap deviceBitmap = secondDevice->accessBitmap(false); SkBitmap deviceSubset; - deviceBitmap.extractSubset(&deviceSubset, + deviceBitmap.extractSubset(&deviceSubset, SkIRect::MakeXYWH(x, y, x, y)); canvas->translate(SkIntToScalar(120), SkIntToScalar(0)); @@ -91,7 +91,7 @@ protected: canvas->drawBitmap(deviceSubset, 0, 0); } - + private: typedef GM INHERITED; }; |