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

Unified Diff: components/exo/pointer.cc

Issue 2041193006: exo: Only create new SurfaceLayer if layer properties change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/exo/pointer.cc
diff --git a/components/exo/pointer.cc b/components/exo/pointer.cc
index db81c365f5c8299c84b06bca0f7d37b927b9a877..6c0c6482e26e753e6a00c62e76cb684625c378c3 100644
--- a/components/exo/pointer.cc
+++ b/components/exo/pointer.cc
@@ -240,6 +240,7 @@ void Pointer::OnScrollEvent(ui::ScrollEvent* event) {
// SurfaceDelegate overrides:
void Pointer::OnSurfaceCommit() {
+ surface_->CheckIfSurfaceHierarchyNeedsCommitToNewSurfaces();
surface_->CommitSurfaceHierarchy();
surface_->window()->SetBounds(
gfx::Rect(gfx::Point() - hotspot_.OffsetFromOrigin(),
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698