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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 18191020: UI Resource Manager (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Added DCHECK of resource queue size to PushPropertiesTo Created 7 years, 5 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 | « cc/trees/layer_tree_host_unittest_context.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.h
===================================================================
--- cc/trees/layer_tree_impl.h (revision 214824)
+++ cc/trees/layer_tree_impl.h (working copy)
@@ -5,12 +5,14 @@
#ifndef CC_TREES_LAYER_TREE_IMPL_H_
#define CC_TREES_LAYER_TREE_IMPL_H_
+#include <list>
#include <string>
#include <vector>
#include "base/containers/hash_tables.h"
#include "base/values.h"
#include "cc/layers/layer_impl.h"
+#include "cc/resources/ui_resource_client.h"
#include "ui/base/latency_info.h"
#if defined(COMPILER_GCC)
@@ -40,7 +42,10 @@
class ResourceProvider;
class TileManager;
struct RendererCapabilities;
+struct UIResourceRequest;
+typedef std::list<UIResourceRequest> UIResourceRequestQueue;
+
class CC_EXPORT LayerTreeImpl {
public:
static scoped_ptr<LayerTreeImpl> create(
@@ -150,6 +155,8 @@
void set_needs_full_tree_sync(bool needs) { needs_full_tree_sync_ = needs; }
bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
+ void set_ui_resource_request_queue(const UIResourceRequestQueue& queue);
+
const LayerImplList& RenderSurfaceLayerList() const;
// These return the size of the root scrollable area and the size of
@@ -191,6 +198,9 @@
void WillModifyTilePriorities();
+ ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
+ void ProcessUIResourceRequestQueue();
+
void AddLayerWithCopyOutputRequest(LayerImpl* layer);
void RemoveLayerWithCopyOutputRequest(LayerImpl* layer);
const std::vector<LayerImpl*> LayersWithCopyOutputRequest() const;
@@ -240,6 +250,8 @@
ui::LatencyInfo latency_info_;
+ UIResourceRequestQueue ui_resource_request_queue_;
+
private:
DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
};
« no previous file with comments | « cc/trees/layer_tree_host_unittest_context.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698