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

Side by Side Diff: cc/resources/image_copy_raster_worker_pool.h

Issue 421183003: Revert of Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/resources/image_copy_raster_worker_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_ 5 #ifndef CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_
6 #define CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_ 6 #define CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "base/values.h" 11 #include "base/values.h"
12 #include "cc/output/context_provider.h" 12 #include "cc/output/context_provider.h"
13 #include "cc/resources/raster_worker_pool.h" 13 #include "cc/resources/raster_worker_pool.h"
14 #include "cc/resources/rasterizer.h" 14 #include "cc/resources/rasterizer.h"
15 15
16 namespace base {
17 namespace debug {
18 class ConvertableToTraceFormat;
19 class TracedValue;
20 }
21 }
22
23 namespace cc { 16 namespace cc {
24 class ResourcePool; 17 class ResourcePool;
25 class ResourceProvider; 18 class ResourceProvider;
26 class ScopedResource; 19 class ScopedResource;
27 20
28 class CC_EXPORT ImageCopyRasterWorkerPool : public RasterWorkerPool, 21 class CC_EXPORT ImageCopyRasterWorkerPool : public RasterWorkerPool,
29 public Rasterizer, 22 public Rasterizer,
30 public RasterizerTaskClient { 23 public RasterizerTaskClient {
31 public: 24 public:
32 virtual ~ImageCopyRasterWorkerPool(); 25 virtual ~ImageCopyRasterWorkerPool();
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 RasterTaskState(const RasterTask* task, ScopedResource* resource) 70 RasterTaskState(const RasterTask* task, ScopedResource* resource)
78 : task(task), resource(resource) {} 71 : task(task), resource(resource) {}
79 72
80 const RasterTask* task; 73 const RasterTask* task;
81 ScopedResource* resource; 74 ScopedResource* resource;
82 }; 75 };
83 76
84 void OnRasterFinished(); 77 void OnRasterFinished();
85 void OnRasterRequiredForActivationFinished(); 78 void OnRasterRequiredForActivationFinished();
86 void FlushCopies(); 79 void FlushCopies();
87 scoped_refptr<base::debug::ConvertableToTraceFormat> StateAsValue() const; 80 scoped_ptr<base::Value> StateAsValue() const;
88 void StagingStateAsValueInto(base::debug::TracedValue* staging_state) const; 81 scoped_ptr<base::Value> StagingStateAsValue() const;
89 82
90 scoped_refptr<base::SequencedTaskRunner> task_runner_; 83 scoped_refptr<base::SequencedTaskRunner> task_runner_;
91 TaskGraphRunner* task_graph_runner_; 84 TaskGraphRunner* task_graph_runner_;
92 const NamespaceToken namespace_token_; 85 const NamespaceToken namespace_token_;
93 RasterizerClient* client_; 86 RasterizerClient* client_;
94 ContextProvider* context_provider_; 87 ContextProvider* context_provider_;
95 ResourceProvider* resource_provider_; 88 ResourceProvider* resource_provider_;
96 ResourcePool* resource_pool_; 89 ResourcePool* resource_pool_;
97 90
98 RasterTaskState::Vector raster_task_states_; 91 RasterTaskState::Vector raster_task_states_;
(...skipping 13 matching lines...) Expand all
112 // completed tasks. 105 // completed tasks.
113 TaskGraph graph_; 106 TaskGraph graph_;
114 Task::Vector completed_tasks_; 107 Task::Vector completed_tasks_;
115 108
116 DISALLOW_COPY_AND_ASSIGN(ImageCopyRasterWorkerPool); 109 DISALLOW_COPY_AND_ASSIGN(ImageCopyRasterWorkerPool);
117 }; 110 };
118 111
119 } // namespace cc 112 } // namespace cc
120 113
121 #endif // CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_ 114 #endif // CC_RESOURCES_IMAGE_COPY_RASTER_WORKER_POOL_H_
OLDNEW
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/resources/image_copy_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698