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

Unified Diff: trunk/src/cc/trees/layer_tree_host.h

Issue 23740010: Revert 223162 "Update the nine patch layer to use UI resources" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 | « trunk/src/cc/test/layer_tree_json_parser.cc ('k') | trunk/src/cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cc/trees/layer_tree_host.h
===================================================================
--- trunk/src/cc/trees/layer_tree_host.h (revision 223178)
+++ trunk/src/cc/trees/layer_tree_host.h (working copy)
@@ -86,35 +86,18 @@
bool using_discard_framebuffer;
};
-class CC_EXPORT UIResourceRequest {
- public:
+struct CC_EXPORT UIResourceRequest {
enum UIResourceRequestType {
UIResourceCreate,
UIResourceDelete,
UIResourceInvalidRequest
};
- UIResourceRequest(UIResourceRequestType type, UIResourceId id);
- UIResourceRequest(UIResourceRequestType type,
- UIResourceId id,
- const UIResourceBitmap& bitmap);
- UIResourceRequest(const UIResourceRequest& request);
-
+ UIResourceRequest();
~UIResourceRequest();
-
- UIResourceRequestType GetType() const { return type_; }
- UIResourceId GetId() const { return id_; }
- UIResourceBitmap GetBitmap() const {
- DCHECK(bitmap_);
- return *bitmap_.get();
- }
-
- UIResourceRequest& operator=(const UIResourceRequest& request);
-
- private:
- UIResourceRequestType type_;
- UIResourceId id_;
- scoped_ptr<UIResourceBitmap> bitmap_;
+ UIResourceRequestType type;
+ UIResourceId id;
+ scoped_refptr<UIResourceBitmap> bitmap;
};
class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
@@ -307,8 +290,6 @@
// were evicted on the impl thread.
void RecreateUIResources();
- virtual gfx::Size GetUIResourceSize(UIResourceId id) const;
-
bool UsingSharedMemoryResources();
int id() const { return tree_id_; }
@@ -345,13 +326,7 @@
bool AnimateLayersRecursive(Layer* current, base::TimeTicks time);
- struct UIResourceClientData {
- UIResourceClient* client;
- gfx::Size size;
- };
-
- typedef base::hash_map<UIResourceId, UIResourceClientData>
- UIResourceClientMap;
+ typedef base::hash_map<UIResourceId, UIResourceClient*> UIResourceClientMap;
UIResourceClientMap ui_resource_client_map_;
int next_ui_resource_id_;
« no previous file with comments | « trunk/src/cc/test/layer_tree_json_parser.cc ('k') | trunk/src/cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698