OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "cc/render_surface.h" | 7 #include "cc/render_surface.h" |
8 | 8 |
9 #include "cc/layer.h" | 9 #include "cc/layer.h" |
10 #include "cc/math_util.h" | 10 #include "cc/math_util.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 , m_targetSurfaceTransformsAreAnimating(false) | 21 , m_targetSurfaceTransformsAreAnimating(false) |
22 , m_screenSpaceTransformsAreAnimating(false) | 22 , m_screenSpaceTransformsAreAnimating(false) |
23 , m_nearestAncestorThatMovesPixels(0) | 23 , m_nearestAncestorThatMovesPixels(0) |
24 { | 24 { |
25 } | 25 } |
26 | 26 |
27 RenderSurface::~RenderSurface() | 27 RenderSurface::~RenderSurface() |
28 { | 28 { |
29 } | 29 } |
30 | 30 |
31 FloatRect RenderSurface::drawableContentRect() const | 31 gfx::RectF RenderSurface::drawableContentRect() const |
32 { | 32 { |
33 FloatRect drawableContentRect = MathUtil::mapClippedRect(m_drawTransform, m_
contentRect); | 33 gfx::RectF drawableContentRect = MathUtil::mapClippedRect(m_drawTransform, m
_contentRect); |
34 if (m_owningLayer->hasReplica()) | 34 if (m_owningLayer->hasReplica()) |
35 drawableContentRect.unite(MathUtil::mapClippedRect(m_replicaDrawTransfor
m, m_contentRect)); | 35 drawableContentRect.Union(MathUtil::mapClippedRect(m_replicaDrawTransfor
m, m_contentRect)); |
36 return drawableContentRect; | 36 return drawableContentRect; |
37 } | 37 } |
38 | 38 |
39 } | 39 } |
OLD | NEW |