OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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 #ifndef CC_LAYER_TREE_HOST_H_ | 5 #ifndef CC_LAYER_TREE_HOST_H_ |
6 #define CC_LAYER_TREE_HOST_H_ | 6 #define CC_LAYER_TREE_HOST_H_ |
7 | 7 |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } | 169 void setHasTransparentBackground(bool transparent) { m_hasTransparentBackgro
und = transparent; } |
170 | 170 |
171 PrioritizedResourceManager* contentsTextureManager() const; | 171 PrioritizedResourceManager* contentsTextureManager() const; |
172 | 172 |
173 bool visible() const { return m_visible; } | 173 bool visible() const { return m_visible; } |
174 void setVisible(bool); | 174 void setVisible(bool); |
175 | 175 |
176 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); | 176 void startPageScaleAnimation(gfx::Vector2d targetOffset, bool useAnchor, flo
at scale, base::TimeDelta duration); |
177 | 177 |
178 void applyScrollAndScale(const ScrollAndScaleSet&); | 178 void applyScrollAndScale(const ScrollAndScaleSet&); |
179 // This function converts event coordinates when the deviceViewport is zoome
d. | |
180 // Coordinates are transformed from logical pixels in the zoomed viewport to | |
181 // logical pixels in the un-zoomed viewport, the latter being the coordinate
s | |
182 // required for hit-testing. | |
183 gfx::PointF adjustEventPointForPinchZoom(const gfx::PointF& zoomedViewportPo
int) const; | |
184 void setImplTransform(const gfx::Transform&); | 179 void setImplTransform(const gfx::Transform&); |
185 | 180 |
186 void startRateLimiter(WebKit::WebGraphicsContext3D*); | 181 void startRateLimiter(WebKit::WebGraphicsContext3D*); |
187 void stopRateLimiter(WebKit::WebGraphicsContext3D*); | 182 void stopRateLimiter(WebKit::WebGraphicsContext3D*); |
188 | 183 |
189 // RateLimitClient implementation | 184 // RateLimitClient implementation |
190 virtual void rateLimit() OVERRIDE; | 185 virtual void rateLimit() OVERRIDE; |
191 | 186 |
192 bool bufferedUpdates(); | 187 bool bufferedUpdates(); |
193 bool requestPartialTextureUpdate(); | 188 bool requestPartialTextureUpdate(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 scoped_ptr<AnimationRegistrar> m_animationRegistrar; | 274 scoped_ptr<AnimationRegistrar> m_animationRegistrar; |
280 | 275 |
281 static bool s_needsFilterContext; | 276 static bool s_needsFilterContext; |
282 | 277 |
283 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); | 278 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); |
284 }; | 279 }; |
285 | 280 |
286 } // namespace cc | 281 } // namespace cc |
287 | 282 |
288 #endif // CC_LAYER_TREE_HOST_H_ | 283 #endif // CC_LAYER_TREE_HOST_H_ |
OLD | NEW |