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

Unified Diff: tests/LayerDrawLooperTest.cpp

Issue 22978012: Split SkDevice into SkBaseDevice and SkBitmapDevice (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Moved code around to make code review easier Created 7 years, 4 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/LayerDrawLooperTest.cpp
===================================================================
--- tests/LayerDrawLooperTest.cpp (revision 10711)
+++ tests/LayerDrawLooperTest.cpp (working copy)
@@ -19,17 +19,20 @@
namespace {
-class FakeDevice : public SkDevice {
+class FakeDevice : public SkRasterDevice {
public:
- FakeDevice() : SkDevice(SkBitmap::kARGB_8888_Config, 100, 100) { }
+ FakeDevice() : SkRasterDevice(SkBitmap::kARGB_8888_Config, 100, 100, false) { }
virtual void drawRect(const SkDraw& draw, const SkRect& r,
const SkPaint& paint) SK_OVERRIDE {
fLastMatrix = *draw.fMatrix;
- SkDevice::drawRect(draw, r, paint);
+ INHERITED::drawRect(draw, r, paint);
}
SkMatrix fLastMatrix;
+
+private:
+ typedef SkRasterDevice INHERITED;
};
} // namespace

Powered by Google App Engine
This is Rietveld 408576698