| Index: cc/output/software_output_device.cc
|
| diff --git a/cc/output/software_output_device.cc b/cc/output/software_output_device.cc
|
| index 956ee6c5495510337196336dff84e992f4a177d6..719eeedf36aef8a0529799bca7450dceee401f5c 100644
|
| --- a/cc/output/software_output_device.cc
|
| +++ b/cc/output/software_output_device.cc
|
| @@ -8,6 +8,7 @@
|
| #include "cc/output/software_frame_data.h"
|
| #include "third_party/skia/include/core/SkCanvas.h"
|
| #include "third_party/skia/include/core/SkDevice.h"
|
| +#include "ui/gfx/skia_util.h"
|
|
|
| namespace cc {
|
|
|
| @@ -43,11 +44,8 @@ void SoftwareOutputDevice::EndPaint(SoftwareFrameData* frame_data) {
|
| void SoftwareOutputDevice::CopyToBitmap(
|
| gfx::Rect rect, SkBitmap* output) {
|
| DCHECK(device_);
|
| - SkIRect invert_rect = SkIRect::MakeXYWH(
|
| - rect.x(), viewport_size_.height() - rect.bottom(),
|
| - rect.width(), rect.height());
|
| const SkBitmap& bitmap = device_->accessBitmap(false);
|
| - bitmap.extractSubset(output, invert_rect);
|
| + bitmap.extractSubset(output, gfx::RectToSkIRect(rect));
|
| }
|
|
|
| void SoftwareOutputDevice::Scroll(
|
|
|