| Index: skia/ext/bitmap_platform_device_win.cc
|
| ===================================================================
|
| --- skia/ext/bitmap_platform_device_win.cc (revision 96545)
|
| +++ skia/ext/bitmap_platform_device_win.cc (working copy)
|
| @@ -8,6 +8,7 @@
|
| #include "skia/ext/bitmap_platform_device_win.h"
|
|
|
| #include "skia/ext/bitmap_platform_device_data.h"
|
| +#include "skia/ext/platform_device.h"
|
| #include "third_party/skia/include/core/SkMatrix.h"
|
| #include "third_party/skia/include/core/SkRefCnt.h"
|
| #include "third_party/skia/include/core/SkRegion.h"
|
| @@ -154,8 +155,8 @@
|
| bool is_opaque,
|
| HANDLE shared_section) {
|
| HDC screen_dc = GetDC(NULL);
|
| - BitmapPlatformDevice* device = BitmapPlatformDevice::create(
|
| - screen_dc, width, height, is_opaque, shared_section);
|
| + BitmapPlatformDevice* device = BitmapPlatformDevice::create(screen_dc, width, height,
|
| + is_opaque, shared_section);
|
| ReleaseDC(NULL, screen_dc);
|
| return device;
|
| }
|
| @@ -165,10 +166,11 @@
|
| BitmapPlatformDevice::BitmapPlatformDevice(
|
| BitmapPlatformDeviceData* data,
|
| const SkBitmap& bitmap)
|
| - : PlatformDevice(bitmap),
|
| + : SkDevice(bitmap),
|
| data_(data) {
|
| // The data object is already ref'ed for us by create().
|
| SkDEBUGCODE(begin_paint_count_ = 0);
|
| + SetPlatformDevice(this, this);
|
| }
|
|
|
| BitmapPlatformDevice::~BitmapPlatformDevice() {
|
| @@ -262,4 +264,3 @@
|
| }
|
|
|
| } // namespace skia
|
| -
|
|
|