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

Side by Side Diff: cc/raster/bitmap_tile_task_worker_pool.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, 9 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ 5 #ifndef CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_
6 #define CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ 6 #define CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 uint64_t resource_content_id, 48 uint64_t resource_content_id,
49 uint64_t previous_content_id) override; 49 uint64_t previous_content_id) override;
50 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; 50 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override;
51 51
52 protected: 52 protected:
53 BitmapTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, 53 BitmapTileTaskWorkerPool(base::SequencedTaskRunner* task_runner,
54 TaskGraphRunner* task_graph_runner, 54 TaskGraphRunner* task_graph_runner,
55 ResourceProvider* resource_provider); 55 ResourceProvider* resource_provider);
56 56
57 private: 57 private:
58 scoped_refptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() 58 scoped_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() const;
59 const;
60 59
61 scoped_refptr<base::SequencedTaskRunner> task_runner_; 60 scoped_refptr<base::SequencedTaskRunner> task_runner_;
62 TaskGraphRunner* task_graph_runner_; 61 TaskGraphRunner* task_graph_runner_;
63 const NamespaceToken namespace_token_; 62 const NamespaceToken namespace_token_;
64 ResourceProvider* resource_provider_; 63 ResourceProvider* resource_provider_;
65 64
66 Task::Vector completed_tasks_; 65 Task::Vector completed_tasks_;
67 66
68 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool); 67 DISALLOW_COPY_AND_ASSIGN(BitmapTileTaskWorkerPool);
69 }; 68 };
70 69
71 } // namespace cc 70 } // namespace cc
72 71
73 #endif // CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_ 72 #endif // CC_RASTER_BITMAP_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698