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

Unified Diff: cc/trees/layer_tree_host_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.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.h
===================================================================
--- cc/trees/layer_tree_host_impl.h (revision 214824)
+++ cc/trees/layer_tree_host_impl.h (working copy)
@@ -5,10 +5,12 @@
#ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
#define CC_TREES_LAYER_TREE_HOST_IMPL_H_
+#include <list>
#include <string>
#include <vector>
#include "base/basictypes.h"
+#include "base/containers/hash_tables.h"
#include "base/memory/scoped_ptr.h"
#include "base/time/time.h"
#include "cc/animation/animation_events.h"
@@ -24,7 +26,9 @@
#include "cc/output/output_surface_client.h"
#include "cc/output/renderer.h"
#include "cc/quads/render_pass.h"
+#include "cc/resources/resource_provider.h"
#include "cc/resources/tile_manager.h"
+#include "skia/ext/refptr.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/gfx/rect.h"
@@ -42,9 +46,10 @@
class MemoryHistory;
class RenderingStatsInstrumentation;
class RenderPassDrawQuad;
-class ResourceProvider;
class TopControlsManager;
+class UIResourceBitmap;
struct RendererCapabilities;
+struct UIResourceRequest;
// LayerTreeHost->Proxy callback interface.
class LayerTreeHostImplClient {
@@ -374,6 +379,13 @@
bool page_scale_animation_active() const { return !!page_scale_animation_; }
+ void CreateUIResource(UIResourceId uid,
+ scoped_refptr<UIResourceBitmap> bitmap);
+ // Deletes a UI resource. May safely be called more than once.
+ void DeleteUIResource(UIResourceId uid);
+
+ ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
+
protected:
LayerTreeHostImpl(
const LayerTreeSettings& settings,
@@ -443,6 +455,10 @@
void DidInitializeVisibleTile();
+ typedef base::hash_map<UIResourceId, ResourceProvider::ResourceId>
+ UIResourceMap;
+ UIResourceMap ui_resource_map_;
+
scoped_ptr<OutputSurface> output_surface_;
// |resource_provider_| and |tile_manager_| can be NULL, e.g. when using tile-
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698