diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:20:33 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2018-05-15 10:28:57 +0000 |
commit | d17ea114e5ef69ad5d5d7413280a13e6428098aa (patch) | |
tree | 2c01a75df69f30d27b1432467cfe7c1467a498da /chromium/ui/aura/local/window_port_local.cc | |
parent | 8c5c43c7b138c9b4b0bf56d946e61d3bbc111bec (diff) | |
download | qtwebengine-chromium-d17ea114e5ef69ad5d5d7413280a13e6428098aa.tar.gz |
BASELINE: Update Chromium to 67.0.3396.47
Change-Id: Idcb1341782e417561a2473eeecc82642dafda5b7
Reviewed-by: Michal Klocek <michal.klocek@qt.io>
Diffstat (limited to 'chromium/ui/aura/local/window_port_local.cc')
-rw-r--r-- | chromium/ui/aura/local/window_port_local.cc | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chromium/ui/aura/local/window_port_local.cc b/chromium/ui/aura/local/window_port_local.cc index 787fbc5e7cc..40abe881763 100644 --- a/chromium/ui/aura/local/window_port_local.cc +++ b/chromium/ui/aura/local/window_port_local.cc @@ -140,6 +140,16 @@ void WindowPortLocal::AllocateLocalSurfaceId() { frame_sink_->SetLocalSurfaceId(local_surface_id_); } +bool WindowPortLocal::IsLocalSurfaceIdAllocationSuppressed() const { + return parent_local_surface_id_allocator_.is_allocation_suppressed(); +} + +viz::ScopedSurfaceIdAllocator WindowPortLocal::GetSurfaceIdAllocator( + base::OnceCallback<void()> allocation_task) { + return viz::ScopedSurfaceIdAllocator(&parent_local_surface_id_allocator_, + std::move(allocation_task)); +} + const viz::LocalSurfaceId& WindowPortLocal::GetLocalSurfaceId() { if (!local_surface_id_.is_valid()) AllocateLocalSurfaceId(); @@ -153,7 +163,8 @@ void WindowPortLocal::OnSurfaceChanged(const viz::SurfaceInfo& surface_info) { DCHECK_EQ(surface_info.id().local_surface_id(), local_surface_id_); window_->layer()->SetShowPrimarySurface( surface_info.id(), window_->bounds().size(), SK_ColorWHITE, - cc::DeadlinePolicy::UseDefaultDeadline()); + cc::DeadlinePolicy::UseDefaultDeadline(), + false /* stretch_content_to_fill_bounds */); window_->layer()->SetFallbackSurfaceId(surface_info.id()); } |