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

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

Issue 1837263005: cc: Rename DisplayListRasterSource to just RasterSource. (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/one_copy_tile_task_worker_pool.h ('k') | cc/raster/raster_buffer.h » ('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 #include "cc/raster/one_copy_tile_task_worker_pool.h" 5 #include "cc/raster/one_copy_tile_task_worker_pool.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <limits> 10 #include <limits>
(...skipping 29 matching lines...) Expand all
40 const Resource* resource, 40 const Resource* resource,
41 uint64_t previous_content_id) 41 uint64_t previous_content_id)
42 : worker_pool_(worker_pool), 42 : worker_pool_(worker_pool),
43 resource_(resource), 43 resource_(resource),
44 lock_(resource_provider, resource->id()), 44 lock_(resource_provider, resource->id()),
45 previous_content_id_(previous_content_id) {} 45 previous_content_id_(previous_content_id) {}
46 46
47 ~RasterBufferImpl() override {} 47 ~RasterBufferImpl() override {}
48 48
49 // Overridden from RasterBuffer: 49 // Overridden from RasterBuffer:
50 void Playback(const DisplayListRasterSource* raster_source, 50 void Playback(const RasterSource* raster_source,
51 const gfx::Rect& raster_full_rect, 51 const gfx::Rect& raster_full_rect,
52 const gfx::Rect& raster_dirty_rect, 52 const gfx::Rect& raster_dirty_rect,
53 uint64_t new_content_id, 53 uint64_t new_content_id,
54 float scale, 54 float scale,
55 bool include_images) override { 55 bool include_images) override {
56 worker_pool_->PlaybackAndCopyOnWorkerThread( 56 worker_pool_->PlaybackAndCopyOnWorkerThread(
57 resource_, &lock_, raster_source, raster_full_rect, raster_dirty_rect, 57 resource_, &lock_, raster_source, raster_full_rect, raster_dirty_rect,
58 scale, include_images, previous_content_id_, new_content_id); 58 scale, include_images, previous_content_id_, new_content_id);
59 } 59 }
60 60
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 } 311 }
312 312
313 void OneCopyTileTaskWorkerPool::ReleaseBufferForRaster( 313 void OneCopyTileTaskWorkerPool::ReleaseBufferForRaster(
314 scoped_ptr<RasterBuffer> buffer) { 314 scoped_ptr<RasterBuffer> buffer) {
315 // Nothing to do here. RasterBufferImpl destructor cleans up after itself. 315 // Nothing to do here. RasterBufferImpl destructor cleans up after itself.
316 } 316 }
317 317
318 void OneCopyTileTaskWorkerPool::PlaybackAndCopyOnWorkerThread( 318 void OneCopyTileTaskWorkerPool::PlaybackAndCopyOnWorkerThread(
319 const Resource* resource, 319 const Resource* resource,
320 ResourceProvider::ScopedWriteLockGL* resource_lock, 320 ResourceProvider::ScopedWriteLockGL* resource_lock,
321 const DisplayListRasterSource* raster_source, 321 const RasterSource* raster_source,
322 const gfx::Rect& raster_full_rect, 322 const gfx::Rect& raster_full_rect,
323 const gfx::Rect& raster_dirty_rect, 323 const gfx::Rect& raster_dirty_rect,
324 float scale, 324 float scale,
325 bool include_images, 325 bool include_images,
326 uint64_t previous_content_id, 326 uint64_t previous_content_id,
327 uint64_t new_content_id) { 327 uint64_t new_content_id) {
328 base::AutoLock lock(lock_); 328 base::AutoLock lock(lock_);
329 329
330 scoped_ptr<StagingBuffer> staging_buffer = 330 scoped_ptr<StagingBuffer> staging_buffer =
331 AcquireStagingBuffer(resource, previous_content_id); 331 AcquireStagingBuffer(resource, previous_content_id);
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 return; 736 return;
737 737
738 busy_buffers_.front()->DestroyGLResources(gl); 738 busy_buffers_.front()->DestroyGLResources(gl);
739 RemoveStagingBuffer(busy_buffers_.front().get()); 739 RemoveStagingBuffer(busy_buffers_.front().get());
740 busy_buffers_.pop_front(); 740 busy_buffers_.pop_front();
741 } 741 }
742 } 742 }
743 } 743 }
744 744
745 } // namespace cc 745 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/one_copy_tile_task_worker_pool.h ('k') | cc/raster/raster_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698