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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 22870016: Update the nine patch layer to use UI resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments by aelias. added invalidation of ui resources to android-side Created 7 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/trees/layer_tree_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index f5d7384cf6a46e67faa4b8475bb59f358e2d00a7..2d4a0f08e2d309f7fe804ea580b7af10c02b6b8b 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -386,12 +386,13 @@ class CC_EXPORT LayerTreeHostImpl
bool page_scale_animation_active() const { return !!page_scale_animation_; }
- void CreateUIResource(UIResourceId uid,
+ virtual void CreateUIResource(UIResourceId uid,
scoped_refptr<UIResourceBitmap> bitmap);
// Deletes a UI resource. May safely be called more than once.
- void DeleteUIResource(UIResourceId uid);
+ virtual void DeleteUIResource(UIResourceId uid);
- ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const;
+ virtual ResourceProvider::ResourceId ResourceIdForUIResource(
+ UIResourceId uid) const;
protected:
LayerTreeHostImpl(

Powered by Google App Engine
This is Rietveld 408576698