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 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 void clearRenderSurface() { m_renderSurface.clear(); } | 200 void clearRenderSurface() { m_renderSurface.clear(); } |
201 RenderSurfaceChromium* renderSurface() const { return m_renderSurface.get();
} | 201 RenderSurfaceChromium* renderSurface() const { return m_renderSurface.get();
} |
202 void createRenderSurface(); | 202 void createRenderSurface(); |
203 | 203 |
204 float drawOpacity() const { return m_drawOpacity; } | 204 float drawOpacity() const { return m_drawOpacity; } |
205 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } | 205 void setDrawOpacity(float opacity) { m_drawOpacity = opacity; } |
206 | 206 |
207 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; } | 207 bool drawOpacityIsAnimating() const { return m_drawOpacityIsAnimating; } |
208 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI
sAnimating = drawOpacityIsAnimating; } | 208 void setDrawOpacityIsAnimating(bool drawOpacityIsAnimating) { m_drawOpacityI
sAnimating = drawOpacityIsAnimating; } |
209 | 209 |
210 LayerChromium* renderTarget() const { ASSERT(!m_renderTarget || m_renderTarg
et->renderSurface()); return m_renderTarget; } | 210 LayerChromium* renderTarget() const { DCHECK(!m_renderTarget || m_renderTarg
et->renderSurface()); return m_renderTarget; } |
211 void setRenderTarget(LayerChromium* target) { m_renderTarget = target; } | 211 void setRenderTarget(LayerChromium* target) { m_renderTarget = target; } |
212 | 212 |
213 bool drawTransformIsAnimating() const { return m_drawTransformIsAnimating; } | 213 bool drawTransformIsAnimating() const { return m_drawTransformIsAnimating; } |
214 void setDrawTransformIsAnimating(bool animating) { m_drawTransformIsAnimatin
g = animating; } | 214 void setDrawTransformIsAnimating(bool animating) { m_drawTransformIsAnimatin
g = animating; } |
215 bool screenSpaceTransformIsAnimating() const { return m_screenSpaceTransform
IsAnimating; } | 215 bool screenSpaceTransformIsAnimating() const { return m_screenSpaceTransform
IsAnimating; } |
216 void setScreenSpaceTransformIsAnimating(bool animating) { m_screenSpaceTrans
formIsAnimating = animating; } | 216 void setScreenSpaceTransformIsAnimating(bool animating) { m_screenSpaceTrans
formIsAnimating = animating; } |
217 | 217 |
218 // This moves from layer space, with origin in the center to target space wi
th origin in the top left. | 218 // This moves from layer space, with origin in the center to target space wi
th origin in the top left. |
219 // That is, it converts from logical, non-page-scaled, to target pixels (and
if the target is the | 219 // That is, it converts from logical, non-page-scaled, to target pixels (and
if the target is the |
220 // root render surface, then this converts to physical pixels). | 220 // root render surface, then this converts to physical pixels). |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; | 383 WebKit::WebAnimationDelegate* m_layerAnimationDelegate; |
384 WebKit::WebLayerScrollClient* m_layerScrollClient; | 384 WebKit::WebLayerScrollClient* m_layerScrollClient; |
385 }; | 385 }; |
386 | 386 |
387 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*); | 387 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*); |
388 | 388 |
389 } | 389 } |
390 #endif // USE(ACCELERATED_COMPOSITING) | 390 #endif // USE(ACCELERATED_COMPOSITING) |
391 | 391 |
392 #endif | 392 #endif |
OLD | NEW |