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

Unified Diff: cc/surfaces/surface.cc

Issue 506273002: Aggregate damage rects in surface aggregator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
Index: cc/surfaces/surface.cc
diff --git a/cc/surfaces/surface.cc b/cc/surfaces/surface.cc
index 32d6395bd8023ecfcd5e06b5f365863363daa61c..79013946005245acaf0ef47532f2b4bf03895ca7 100644
--- a/cc/surfaces/surface.cc
+++ b/cc/surfaces/surface.cc
@@ -10,7 +10,7 @@
namespace cc {
Surface::Surface(SurfaceId id, const gfx::Size& size, SurfaceFactory* factory)
- : surface_id_(id), size_(size), factory_(factory) {
+ : surface_id_(id), size_(size), factory_(factory), frame_index_(2) {
jamesr 2014/08/26 22:06:22 why 2? just for debugging?
}
Surface::~Surface() {
@@ -29,6 +29,7 @@ void Surface::QueueFrame(scoped_ptr<CompositorFrame> frame,
current_frame_ = frame.Pass();
factory_->ReceiveFromChild(
current_frame_->delegated_frame_data->resource_list);
+ ++frame_index_;
if (previous_frame) {
ReturnedResourceArray previous_resources;

Powered by Google App Engine
This is Rietveld 408576698