| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; | 71 void ReleaseBufferForRaster(scoped_ptr<RasterBuffer> buffer) override; |
| 72 | 72 |
| 73 // Overridden from base::trace_event::MemoryDumpProvider: | 73 // Overridden from base::trace_event::MemoryDumpProvider: |
| 74 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, | 74 bool OnMemoryDump(const base::trace_event::MemoryDumpArgs& args, |
| 75 base::trace_event::ProcessMemoryDump* pmd) override; | 75 base::trace_event::ProcessMemoryDump* pmd) override; |
| 76 | 76 |
| 77 // Playback raster source and copy result into |resource|. | 77 // Playback raster source and copy result into |resource|. |
| 78 void PlaybackAndCopyOnWorkerThread( | 78 void PlaybackAndCopyOnWorkerThread( |
| 79 const Resource* resource, | 79 const Resource* resource, |
| 80 const ResourceProvider::ScopedWriteLockGL* resource_lock, | 80 const ResourceProvider::ScopedWriteLockGL* resource_lock, |
| 81 const RasterSource* raster_source, | 81 const DisplayListRasterSource* raster_source, |
| 82 const gfx::Rect& raster_full_rect, | 82 const gfx::Rect& raster_full_rect, |
| 83 const gfx::Rect& raster_dirty_rect, | 83 const gfx::Rect& raster_dirty_rect, |
| 84 float scale, | 84 float scale, |
| 85 bool include_images, | 85 bool include_images, |
| 86 uint64_t resource_content_id, | 86 uint64_t resource_content_id, |
| 87 uint64_t previous_content_id); | 87 uint64_t previous_content_id); |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 OneCopyTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, | 90 OneCopyTileTaskWorkerPool(base::SequencedTaskRunner* task_runner, |
| 91 TaskGraphRunner* task_graph_runner, | 91 TaskGraphRunner* task_graph_runner, |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // canceled when ScheduleTasks() is called. | 169 // canceled when ScheduleTasks() is called. |
| 170 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> | 170 base::WeakPtrFactory<OneCopyTileTaskWorkerPool> |
| 171 task_set_finished_weak_ptr_factory_; | 171 task_set_finished_weak_ptr_factory_; |
| 172 | 172 |
| 173 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); | 173 DISALLOW_COPY_AND_ASSIGN(OneCopyTileTaskWorkerPool); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace cc | 176 } // namespace cc |
| 177 | 177 |
| 178 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ | 178 #endif // CC_RASTER_ONE_COPY_TILE_TASK_WORKER_POOL_H_ |
| OLD | NEW |