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

Side by Side Diff: cc/raster/zero_copy_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_ZERO_COPY_TILE_TASK_WORKER_POOL_H_ 5 #ifndef CC_RASTER_ZERO_COPY_TILE_TASK_WORKER_POOL_H_
6 #define CC_RASTER_ZERO_COPY_TILE_TASK_WORKER_POOL_H_ 6 #define CC_RASTER_ZERO_COPY_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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 uint64_t previous_content_id) override; 51 uint64_t previous_content_id) override;
52 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; 52 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override;
53 53
54 protected: 54 protected:
55 ZeroCopyTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, 55 ZeroCopyTileTaskWorkerPool(base::SequencedTaskRunner* task_runner,
56 TaskGraphRunner* task_graph_runner, 56 TaskGraphRunner* task_graph_runner,
57 ResourceProvider* resource_provider, 57 ResourceProvider* resource_provider,
58 ResourceFormat preferred_tile_format); 58 ResourceFormat preferred_tile_format);
59 59
60 private: 60 private:
61 scoped_refptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() 61 scoped_ptr<base::trace_event::ConvertableToTraceFormat> StateAsValue() const;
62 const;
63 62
64 scoped_refptr<base::SequencedTaskRunner> task_runner_; 63 scoped_refptr<base::SequencedTaskRunner> task_runner_;
65 TaskGraphRunner* task_graph_runner_; 64 TaskGraphRunner* task_graph_runner_;
66 const NamespaceToken namespace_token_; 65 const NamespaceToken namespace_token_;
67 ResourceProvider* resource_provider_; 66 ResourceProvider* resource_provider_;
68 67
69 ResourceFormat preferred_tile_format_; 68 ResourceFormat preferred_tile_format_;
70 69
71 Task::Vector completed_tasks_; 70 Task::Vector completed_tasks_;
72 71
73 DISALLOW_COPY_AND_ASSIGN(ZeroCopyTileTaskWorkerPool); 72 DISALLOW_COPY_AND_ASSIGN(ZeroCopyTileTaskWorkerPool);
74 }; 73 };
75 74
76 } // namespace cc 75 } // namespace cc
77 76
78 #endif // CC_RASTER_ZERO_COPY_TILE_TASK_WORKER_POOL_H_ 77 #endif // CC_RASTER_ZERO_COPY_TILE_TASK_WORKER_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698