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 #ifndef LayerChromium_h | 5 #ifndef LayerChromium_h |
6 #define LayerChromium_h | 6 #define LayerChromium_h |
7 | 7 |
8 #include "CCLayerAnimationController.h" | 8 #include "CCLayerAnimationController.h" |
9 #include "CCOcclusionTracker.h" | 9 #include "CCOcclusionTracker.h" |
10 #include "FloatPoint.h" | 10 #include "FloatPoint.h" |
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 void clearRenderSurface() { m_renderSurface.reset(); } | 195 void clearRenderSurface() { m_renderSurface.reset(); } |
196 RenderSurfaceChromium* renderSurface() const { return m_renderSurface.get();
} | 196 RenderSurfaceChromium* renderSurface() const { return m_renderSurface.get();
} |
197 void createRenderSurface(); | 197 void createRenderSurface(); |
198 | 198 |
199 float drawOpacity() const { return m_drawOpacity; } | 199 float drawOpacity() const { return m_drawOpacity; } |
200 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } | 200 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } |
201 | 201 |
202 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; } | 202 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; } |
203 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI
sAnimating = drawOpacityIsAnimating; } | 203 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI
sAnimating = drawOpacityIsAnimating; } |
204 | 204 |
205 LayerChromium* renderTarget() const { ASSERT(!m_renderTarget || m_renderTarg
et->renderSurface()); return m_renderTarget; } | 205 LayerChromium* renderTarget() const { DCHECK(!m_renderTarget || m_renderTarg
et->renderSurface()); return m_renderTarget; } |
206 void setRenderTarget(LayerChromium* target) { m_renderTarget = target; } | 206 void setRenderTarget(LayerChromium* target) { m_renderTarget = target; } |
207 | 207 |
208 bool drawTransformIsAnimating() const { return m_drawTransformIsAnimating; } | 208 bool drawTransformIsAnimating() const { return m_drawTransformIsAnimating; } |
209 void setDrawTransformIsAnimating(bool animating) { m_drawTransformIsAnimatin
g = animating; } | 209 void setDrawTransformIsAnimating(bool animating) { m_drawTransformIsAnimatin
g = animating; } |
210 bool screenSpaceTransformIsAnimating() const { return m_screenSpaceTransform
IsAnimating; } | 210 bool screenSpaceTransformIsAnimating() const { return m_screenSpaceTransform
IsAnimating; } |
211 void setScreenSpaceTransformIsAnimating(bool animating) { m_screenSpaceTrans
formIsAnimating = animating; } | 211 void setScreenSpaceTransformIsAnimating(bool animating) { m_screenSpaceTrans
formIsAnimating = animating; } |
212 | 212 |
213 // This moves from layer space, with origin in the center to target space wi
th origin in the top left. | 213 // This moves from layer space, with origin in the center to target space wi
th origin in the top left. |
214 // That is, it converts from logical, non-page-scaled, to target pixels (and
if the target is the | 214 // That is, it converts from logical, non-page-scaled, to target pixels (and
if the target is the |
215 // root render surface, then this converts to physical pixels). | 215 // root render surface, then this converts to physical pixels). |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 | 377 |
378 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 378 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
379 WebKit::WebLayerScrollClient* m_layerScrollClient; | 379 WebKit::WebLayerScrollClient* m_layerScrollClient; |
380 }; | 380 }; |
381 | 381 |
382 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*); | 382 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*); |
383 | 383 |
384 } // namespace cc | 384 } // namespace cc |
385 | 385 |
386 #endif | 386 #endif |
OLD | NEW |