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

Unified Diff: cc/trees/layer_tree_impl.cc

Issue 22870016: Update the nine patch layer to use UI resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased 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 | « cc/trees/layer_tree_impl.h ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_impl.cc
diff --git a/cc/trees/layer_tree_impl.cc b/cc/trees/layer_tree_impl.cc
index 4c1034a7293ea49a59430043d8aa0fcf18c609cf..280bdad8ee10a15d77fc965e2167ce1b42f7f235 100644
--- a/cc/trees/layer_tree_impl.cc
+++ b/cc/trees/layer_tree_impl.cc
@@ -657,12 +657,12 @@ void LayerTreeImpl::ProcessUIResourceRequestQueue() {
UIResourceRequest req = ui_resource_request_queue_.front();
ui_resource_request_queue_.pop_front();
- switch (req.type) {
+ switch (req.GetType()) {
case UIResourceRequest::UIResourceCreate:
- layer_tree_host_impl_->CreateUIResource(req.id, req.bitmap);
+ layer_tree_host_impl_->CreateUIResource(req.GetId(), req.GetBitmap());
break;
case UIResourceRequest::UIResourceDelete:
- layer_tree_host_impl_->DeleteUIResource(req.id);
+ layer_tree_host_impl_->DeleteUIResource(req.GetId());
break;
case UIResourceRequest::UIResourceInvalidRequest:
NOTREACHED();
« no previous file with comments | « cc/trees/layer_tree_impl.h ('k') | content/browser/renderer_host/compositor_impl_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698