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

Unified Diff: cc/tiles/tile_manager.h

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: cc/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index 3310b198b56862d1bb5476e1850fab728a065e39..d70a1275dbefc9d7bf7f38717075cc0665f76b48 100644
--- a/cc/tiles/tile_manager.h
+++ b/cc/tiles/tile_manager.h
@@ -85,7 +85,7 @@ struct RasterTaskCompletionStats {
size_t completed_count;
size_t canceled_count;
};
-scoped_refptr<base::trace_event::ConvertableToTraceFormat>
+scoped_ptr<base::trace_event::ConvertableToTraceFormat>
RasterTaskCompletionStatsAsValue(const RasterTaskCompletionStats& stats);
// This class manages tiles, deciding which should get rasterized and which
@@ -136,7 +136,7 @@ class CC_EXPORT TileManager {
return &image_decode_controller_;
}
- scoped_refptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue()
+ scoped_ptr<base::trace_event::ConvertableToTraceFormat> BasicStateAsValue()
const;
void BasicStateAsValueInto(base::trace_event::TracedValue* dict) const;
const MemoryHistory::Entry& memory_stats_from_last_assign() const {
@@ -281,7 +281,7 @@ class CC_EXPORT TileManager {
scoped_refptr<TileTask> CreateTaskSetFinishedTask(
void (TileManager::*callback)());
- scoped_refptr<base::trace_event::ConvertableToTraceFormat>
+ scoped_ptr<base::trace_event::ConvertableToTraceFormat>
ScheduledTasksStateAsValue() const;
TileManagerClient* client_;

Powered by Google App Engine
This is Rietveld 408576698