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

Unified Diff: cc/raster/one_copy_raster_buffer_provider.cc

Issue 2175553002: Raster PictureLayerTiling with fractional translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Raster PictureLayerTiling with fractional translation Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: cc/raster/one_copy_raster_buffer_provider.cc
diff --git a/cc/raster/one_copy_raster_buffer_provider.cc b/cc/raster/one_copy_raster_buffer_provider.cc
index f0f6b0f36b0dff08cc366b714cd47eea726680c9..5466ffaaf5480f597af6987e2dc705699bad6ff8 100644
--- a/cc/raster/one_copy_raster_buffer_provider.cc
+++ b/cc/raster/one_copy_raster_buffer_provider.cc
@@ -55,12 +55,13 @@ void OneCopyRasterBufferProvider::RasterBufferImpl::Playback(
const gfx::Rect& raster_dirty_rect,
uint64_t new_content_id,
float scale,
+ const gfx::Vector2dF& translation,
const RasterSource::PlaybackSettings& playback_settings) {
TRACE_EVENT0("cc", "OneCopyRasterBuffer::Playback");
client_->PlaybackAndCopyOnWorkerThread(
resource_, &lock_, sync_token_, raster_source, raster_full_rect,
- raster_dirty_rect, scale, playback_settings, previous_content_id_,
- new_content_id);
+ raster_dirty_rect, scale, translation, playback_settings,
+ previous_content_id_, new_content_id);
}
OneCopyRasterBufferProvider::OneCopyRasterBufferProvider(
@@ -173,6 +174,7 @@ void OneCopyRasterBufferProvider::PlaybackAndCopyOnWorkerThread(
const gfx::Rect& raster_full_rect,
const gfx::Rect& raster_dirty_rect,
float scale,
+ const gfx::Vector2dF& translation,
const RasterSource::PlaybackSettings& playback_settings,
uint64_t previous_content_id,
uint64_t new_content_id) {
@@ -193,7 +195,7 @@ void OneCopyRasterBufferProvider::PlaybackAndCopyOnWorkerThread(
PlaybackToStagingBuffer(staging_buffer.get(), resource, raster_source,
raster_full_rect, raster_dirty_rect, scale,
- playback_settings, previous_content_id,
+ translation, playback_settings, previous_content_id,
new_content_id);
CopyOnWorkerThread(staging_buffer.get(), resource_lock, sync_token,
@@ -209,6 +211,7 @@ void OneCopyRasterBufferProvider::PlaybackToStagingBuffer(
const gfx::Rect& raster_full_rect,
const gfx::Rect& raster_dirty_rect,
float scale,
+ const gfx::Vector2dF& translation,
const RasterSource::PlaybackSettings& playback_settings,
uint64_t previous_content_id,
uint64_t new_content_id) {
@@ -261,7 +264,7 @@ void OneCopyRasterBufferProvider::PlaybackToStagingBuffer(
RasterBufferProvider::PlaybackToMemory(
buffer->memory(0), resource->format(), staging_buffer->size,
buffer->stride(0), raster_source, raster_full_rect, playback_rect,
- scale, playback_settings);
+ scale, translation, playback_settings);
buffer->Unmap();
staging_buffer->content_id = new_content_id;
}

Powered by Google App Engine
This is Rietveld 408576698