summaryrefslogtreecommitdiffstats
path: root/content/browser/aura/software_output_device_win.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/aura/software_output_device_win.cc')
-rw-r--r--content/browser/aura/software_output_device_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/aura/software_output_device_win.cc b/content/browser/aura/software_output_device_win.cc
index 1a5af46..47eac50 100644
--- a/content/browser/aura/software_output_device_win.cc
+++ b/content/browser/aura/software_output_device_win.cc
@@ -85,7 +85,7 @@ void SoftwareOutputDeviceWin::EndPaint(cc::SoftwareFrameData* frame_data) {
RGB(0xFF, 0xFF, 0xFF), &blend, ULW_ALPHA);
skia::EndPlatformPaint(canvas);
} else {
- SkDevice* device = canvas->getDevice();
+ SkBaseDevice* device = canvas->getDevice();
const SkBitmap& bitmap = device->accessBitmap(false);
HDC hdc = ::GetDC(hwnd_);
gfx::StretchDIBits(hdc,
@@ -102,7 +102,7 @@ void SoftwareOutputDeviceWin::EndPaint(cc::SoftwareFrameData* frame_data) {
void SoftwareOutputDeviceWin::CopyToBitmap(
gfx::Rect rect, SkBitmap* output) {
DCHECK(contents_);
- SkDevice* device = contents_->sk_canvas()->getDevice();
+ SkBaseDevice* device = contents_->sk_canvas()->getDevice();
const SkBitmap& bitmap = device->accessBitmap(false);
bitmap.extractSubset(output, gfx::RectToSkIRect(rect));
}