diff options
author | 2014-02-16 00:59:25 +0000 | |
---|---|---|
committer | 2014-02-16 00:59:25 +0000 | |
commit | 15a140599942f70e47380e3f700a825c7cece3b4 (patch) | |
tree | 58bd83fb723b2766d078c93eb947bedf055f391a /tests/LayerDrawLooperTest.cpp | |
parent | a3b532743dbb1d54a4c17a2574083ef93c949d50 (diff) |
Change device factories to take SkImageInfo instead of SkBitmap::Config
patch from issue 167033002
BUG=skia:
R=reed@google.com
Author: reed@chromium.org
Review URL: https://codereview.chromium.org/168653002
git-svn-id: http://skia.googlecode.com/svn/trunk@13463 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tests/LayerDrawLooperTest.cpp')
-rw-r--r-- | tests/LayerDrawLooperTest.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/LayerDrawLooperTest.cpp b/tests/LayerDrawLooperTest.cpp index 8f8a6b6eb0..68dd5e06e7 100644 --- a/tests/LayerDrawLooperTest.cpp +++ b/tests/LayerDrawLooperTest.cpp @@ -18,9 +18,15 @@ #include "SkXfermode.h" #include "Test.h" +static SkBitmap make_bm(int w, int h) { + SkBitmap bm; + bm.allocN32Pixels(w, h); + return bm; +} + class FakeDevice : public SkBitmapDevice { public: - FakeDevice() : SkBitmapDevice(SkBitmap::kARGB_8888_Config, 100, 100, false) { } + FakeDevice() : SkBitmapDevice(make_bm(100, 100)) { } virtual void drawRect(const SkDraw& draw, const SkRect& r, const SkPaint& paint) SK_OVERRIDE { |