Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(314)

Unified Diff: content/browser/compositor/software_output_device_ozone.cc

Issue 249413003: ozone: dri: Composite to intermediate surface & copy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: split drisurfaceadapter definitions Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/compositor/software_output_device_ozone_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
+ surface_ozone_->PresentCanvas(damage_rect_);
}
} // namespace content
« no previous file with comments | « no previous file | content/browser/compositor/software_output_device_ozone_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698