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

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

Issue 2045743003: cc: Add traces for identification of raster buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correction Created 4 years, 6 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_raster_buffer_provider.cc ('k') | cc/raster/raster_buffer_provider.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 #include "cc/raster/one_copy_raster_buffer_provider.h" 5 #include "cc/raster/one_copy_raster_buffer_provider.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 28 matching lines...) Expand all
39 ~RasterBufferImpl() override {} 39 ~RasterBufferImpl() override {}
40 40
41 // Overridden from RasterBuffer: 41 // Overridden from RasterBuffer:
42 void Playback( 42 void Playback(
43 const RasterSource* raster_source, 43 const RasterSource* raster_source,
44 const gfx::Rect& raster_full_rect, 44 const gfx::Rect& raster_full_rect,
45 const gfx::Rect& raster_dirty_rect, 45 const gfx::Rect& raster_dirty_rect,
46 uint64_t new_content_id, 46 uint64_t new_content_id,
47 float scale, 47 float scale,
48 const RasterSource::PlaybackSettings& playback_settings) override { 48 const RasterSource::PlaybackSettings& playback_settings) override {
49 TRACE_EVENT0("cc", "OneCopyRasterBuffer::Playback");
49 worker_pool_->PlaybackAndCopyOnWorkerThread( 50 worker_pool_->PlaybackAndCopyOnWorkerThread(
50 resource_, &lock_, raster_source, raster_full_rect, raster_dirty_rect, 51 resource_, &lock_, raster_source, raster_full_rect, raster_dirty_rect,
51 scale, playback_settings, previous_content_id_, new_content_id); 52 scale, playback_settings, previous_content_id_, new_content_id);
52 } 53 }
53 54
54 private: 55 private:
55 OneCopyRasterBufferProvider* worker_pool_; 56 OneCopyRasterBufferProvider* worker_pool_;
56 const Resource* resource_; 57 const Resource* resource_;
57 ResourceProvider::ScopedWriteLockGL lock_; 58 ResourceProvider::ScopedWriteLockGL lock_;
58 uint64_t previous_content_id_; 59 uint64_t previous_content_id_;
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 gl->OrderingBarrierCHROMIUM(); 324 gl->OrderingBarrierCHROMIUM();
324 325
325 // Generate sync token after the barrier for cross context synchronization. 326 // Generate sync token after the barrier for cross context synchronization.
326 gpu::SyncToken sync_token; 327 gpu::SyncToken sync_token;
327 gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync, sync_token.GetData()); 328 gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync, sync_token.GetData());
328 resource_lock->UpdateResourceSyncToken(sync_token); 329 resource_lock->UpdateResourceSyncToken(sync_token);
329 } 330 }
330 } 331 }
331 332
332 } // namespace cc 333 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/gpu_raster_buffer_provider.cc ('k') | cc/raster/raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698