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

Unified Diff: cc/surfaces/display.h

Issue 432093003: Enqueuing new frames in a Surface should cause Displays to reaggregate it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « no previous file | cc/surfaces/display.cc » ('j') | cc/surfaces/display.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display.h
diff --git a/cc/surfaces/display.h b/cc/surfaces/display.h
index 97185972c49c38f67406235d55de0935ff0644a1..d4f2211d942851ed282faa772bc0b6b1c9afdd7f 100644
--- a/cc/surfaces/display.h
+++ b/cc/surfaces/display.h
@@ -5,7 +5,10 @@
#ifndef CC_SURFACES_DISPLAY_H_
#define CC_SURFACES_DISPLAY_H_
+#include <set>
+
#include "base/memory/scoped_ptr.h"
+#include "base/memory/weak_ptr.h"
#include "cc/output/output_surface_client.h"
#include "cc/output/renderer.h"
#include "cc/resources/returned_resource.h"
@@ -70,8 +73,12 @@ class CC_SURFACES_EXPORT Display : public OutputSurfaceClient,
virtual void SetFullRootLayerDamage() OVERRIDE {}
virtual void RunOnDemandRasterTask(Task* on_demand_raster_task) OVERRIDE {}
+ std::set<Surface*>& contained_surfaces() { return contained_surfaces_; }
+
private:
void InitializeOutputSurface();
+ void DoDraw();
+ void ClearSurfaceList();
DisplayClient* client_;
SurfaceManager* manager_;
@@ -83,6 +90,12 @@ class CC_SURFACES_EXPORT Display : public OutputSurfaceClient,
scoped_ptr<ResourceProvider> resource_provider_;
scoped_ptr<SurfaceAggregator> aggregator_;
scoped_ptr<DirectRenderer> renderer_;
+ bool scheduled_draw_;
+
+ // This is the set of surfaces that were drawn by this last time.
+ std::set<Surface*> contained_surfaces_;
jamesr 2014/08/07 21:04:06 i think this should be a set of IDs, not raw surfa
+
+ base::WeakPtrFactory<Display> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(Display);
};
« no previous file with comments | « no previous file | cc/surfaces/display.cc » ('j') | cc/surfaces/display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698