Chromium Code Reviews| Index: content/browser/compositor/software_output_device_ozone.cc |
| diff --git a/content/browser/compositor/software_output_device_ozone.cc b/content/browser/compositor/software_output_device_ozone.cc |
| index dfc4c5e0949a61a6c929faa7c56c8c44c0aaa9b0..4beb0f63106994ef599f5e8eb40f2fec071a0934 100644 |
| --- a/content/browser/compositor/software_output_device_ozone.cc |
| +++ b/content/browser/compositor/software_output_device_ozone.cc |
| @@ -45,25 +45,13 @@ SkCanvas* SoftwareOutputDeviceOzone::BeginPaint(const gfx::Rect& damage_rect) { |
| // Get canvas for next frame. |
| canvas_ = surface_ozone_->GetCanvas(); |
| - canvas_->clipRect(gfx::RectToSkRect(damage_rect), SkRegion::kReplace_Op); |
| - // Save the current state so we can restore once we're done drawing. This is |
| - // saved after the clip since we want to keep the clip information after we're |
| - // done drawing such that OZONE knows what was updated. |
| - canvas_->save(); |
| - |
| return SoftwareOutputDevice::BeginPaint(damage_rect); |
| } |
| void SoftwareOutputDeviceOzone::EndPaint(cc::SoftwareFrameData* frame_data) { |
| SoftwareOutputDevice::EndPaint(frame_data); |
| - canvas_->restore(); |
| - |
| - if (damage_rect_.IsEmpty()) |
| - return; |
| - |
| - bool scheduled = surface_ozone_->PresentCanvas(); |
| - DCHECK(scheduled) << "Failed to present canvas"; |
|
danakj
2014/04/23 19:05:38
Can this be expected to fail more than before? Or
spang
2014/04/23 20:57:18
Changing to void sounds fine to me. The error path
|
| + surface_ozone_->PresentCanvas(damage_rect_); |
| } |
| } // namespace content |