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