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

Unified Diff: cc/layers/ui_resource_layer_impl.cc

Issue 2018263002: Change LayerImpl::LayerTreeAsJson to return a std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/layers/ui_resource_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/ui_resource_layer_impl.cc
diff --git a/cc/layers/ui_resource_layer_impl.cc b/cc/layers/ui_resource_layer_impl.cc
index 5e3768df8066a423d9e53eae3dcadfa171e6abf5..1b67d111f4a2daaa09576371a22c287f8264bb08 100644
--- a/cc/layers/ui_resource_layer_impl.cc
+++ b/cc/layers/ui_resource_layer_impl.cc
@@ -140,8 +140,9 @@ const char* UIResourceLayerImpl::LayerTypeAsString() const {
return "cc::UIResourceLayerImpl";
}
-base::DictionaryValue* UIResourceLayerImpl::LayerTreeAsJson() const {
- base::DictionaryValue* result = LayerImpl::LayerTreeAsJson();
+std::unique_ptr<base::DictionaryValue> UIResourceLayerImpl::LayerTreeAsJson()
+ const {
+ std::unique_ptr<base::DictionaryValue> result = LayerImpl::LayerTreeAsJson();
result->Set("ImageBounds", MathUtil::AsValue(image_bounds_).release());
« no previous file with comments | « cc/layers/ui_resource_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698