OLD | NEW |
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_ONE_COPY_TILE_TASK_WORKER_POOL_H_ | 5 #ifndef CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ |
6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ | 6 #define CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; | 73 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; |
74 | 74 |
75 // Overridden from base::trace_event::MemoryDumpProvider: | 75 // Overridden from base::trace_event::MemoryDumpProvider: |
76 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, | 76 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, |
77 base::trace_event::ProcessMemoryDump* pmd) override; | 77 base::trace_event::ProcessMemoryDump* pmd) override; |
78 | 78 |
79 // Playback raster source and copy result into |resource|. | 79 // Playback raster source and copy result into |resource|. |
80 void PlaybackAndCopyOnWorkerThread( | 80 void PlaybackAndCopyOnWorkerThread( |
81 const Resource* resource, | 81 const Resource* resource, |
82 ResourceProvider::ScopedWriteLockGL* resource_lock, | 82 ResourceProvider::ScopedWriteLockGL* resource_lock, |
83 const DisplayListRasterSource* raster_source, | 83 const RasterSource* raster_source, |
84 const gfx::Rect& raster_full_rect, | 84 const gfx::Rect& raster_full_rect, |
85 const gfx::Rect& raster_dirty_rect, | 85 const gfx::Rect& raster_dirty_rect, |
86 float scale, | 86 float scale, |
87 bool include_images, | 87 bool include_images, |
88 uint64_t resource_content_id, | 88 uint64_t resource_content_id, |
89 uint64_t previous_content_id); | 89 uint64_t previous_content_id); |
90 | 90 |
91 protected: | 91 protected: |
92 OneCopyTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, | 92 OneCopyTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, |
93 TaskGraphRunner* task_graph_runner, | 93 TaskGraphRunner* task_graph_runner, |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 base::Closure reduce_memory_usage_callback_; | 159 base::Closure reduce_memory_usage_callback_; |
160 | 160 |
161 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_; | 161 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> weak_ptr_factory_; |
162 | 162 |
163 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); | 163 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); |
164 }; | 164 }; |
165 | 165 |
166 } // namespace cc | 166 } // namespace cc |
167 | 167 |
168 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ | 168 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ |
OLD | NEW |