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

Side by Side Diff: cc/raster/one_copy_tile_task_worker_pool.h

Issue 1854513002: cc: Add RasterSource::PlaybackSettings for finer control of raster. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « cc/raster/gpu_tile_task_worker_pool.cc ('k') | cc/raster/one_copy_tile_task_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_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 RasterSource* 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 const RasterSource::PlaybackSettings& playback_settings,
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,
94 ResourceProvider* resource_provider, 94 ResourceProvider* resource_provider,
95 int max_copy_texture_chromium_size, 95 int max_copy_texture_chromium_size,
96 bool use_partial_raster, 96 bool use_partial_raster,
97 int max_staging_buffer_usage_in_bytes, 97 int max_staging_buffer_usage_in_bytes,
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « cc/raster/gpu_tile_task_worker_pool.cc ('k') | cc/raster/one_copy_tile_task_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698