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

Unified Diff: ui/views/view.cc

Issue 12226080: Thread ui transform animations (Closed) Base URL: http://git.chromium.org/chromium/src.git@DefineThreadedLayerAnimationElements
Patch Set: Speed up animations in WebContentsViewAuraTest.QuickOverscrollDirectionChange Created 7 years, 9 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 | « ui/views/view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index d88c2bccf6b043dfab16f649df087cf755ad0d2d..460e0362303d1e708156d512f3f5e222a3fdb5c5 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -501,9 +501,8 @@ void View::OnEnabledChanged() {
// Transformations -------------------------------------------------------------
-const gfx::Transform& View::GetTransform() const {
- static const gfx::Transform* no_op = new gfx::Transform;
- return layer() ? layer()->transform() : *no_op;
+gfx::Transform View::GetTransform() const {
+ return layer() ? layer()->transform() : gfx::Transform();
}
void View::SetTransform(const gfx::Transform& transform) {
« no previous file with comments | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698