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

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: Address review comments Created 7 years, 10 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
« ui/compositor/layer.cc ('K') | « 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 a38ccb71afdc69bb0bbad15d554cf04de2d8b947..954ed8ad795bdad39e341272a6caa797f9dfa579 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -438,9 +438,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) {
« ui/compositor/layer.cc ('K') | « ui/views/view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698