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

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') | components/exo/surface.h » ('J')
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 742534ac30031f5f1e7c5bc079701a397df2843b..2fc17942100209f51686d9f14d4f095d37f792f8 100644
--- a/components/exo/pointer.cc
+++ b/components/exo/pointer.cc
@@ -238,6 +238,7 @@ void Pointer::OnScrollEvent(ui::ScrollEvent* event) {
// SurfaceDelegate overrides:
void Pointer::OnSurfaceCommit() {
+ surface_->CheckForCommittingToNewSurface();
surface_->CommitSurfaceHierarchy();
surface_->SetBounds(gfx::Rect(gfx::Point() - hotspot_.OffsetFromOrigin(),
surface_->layer()->size()));
« no previous file with comments | « no previous file | components/exo/shell_surface.cc » ('j') | components/exo/surface.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698