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

Unified Diff: components/exo/buffer.cc

Issue 1717283003: tracing: Make ConvertableToTraceFormat move-only scoped_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 10 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: components/exo/buffer.cc
diff --git a/components/exo/buffer.cc b/components/exo/buffer.cc
index de741361750dcddb884ee858ad706e7e4d011b3c..86c04a238aa9a3603246a9874fb555e379f1c2a8 100644
--- a/components/exo/buffer.cc
+++ b/components/exo/buffer.cc
@@ -453,9 +453,9 @@ gfx::Size Buffer::GetSize() const {
return gpu_memory_buffer_->GetSize();
}
-scoped_refptr<base::trace_event::TracedValue> Buffer::AsTracedValue() const {
- scoped_refptr<base::trace_event::TracedValue> value =
- new base::trace_event::TracedValue;
+scoped_ptr<base::trace_event::TracedValue> Buffer::AsTracedValue() const {
+ scoped_ptr<base::trace_event::TracedValue> value(
+ new base::trace_event::TracedValue());
gfx::Size size = gpu_memory_buffer_->GetSize();
value->SetInteger("width", size.width());
value->SetInteger("height", size.height());

Powered by Google App Engine
This is Rietveld 408576698