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 RenderSurfaceChromium_h | 6 #ifndef RenderSurfaceChromium_h |
7 #define RenderSurfaceChromium_h | 7 #define RenderSurfaceChromium_h |
8 | 8 |
9 #if USE(ACCELERATED_COMPOSITING) | 9 #if USE(ACCELERATED_COMPOSITING) |
10 | 10 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 void setReplicaScreenSpaceTransform(const WebKit::WebTransformationMatrix& r
eplicaScreenSpaceTransform) { m_replicaScreenSpaceTransform = replicaScreenSpace
Transform; } | 50 void setReplicaScreenSpaceTransform(const WebKit::WebTransformationMatrix& r
eplicaScreenSpaceTransform) { m_replicaScreenSpaceTransform = replicaScreenSpace
Transform; } |
51 | 51 |
52 bool targetSurfaceTransformsAreAnimating() const { return m_targetSurfaceTra
nsformsAreAnimating; } | 52 bool targetSurfaceTransformsAreAnimating() const { return m_targetSurfaceTra
nsformsAreAnimating; } |
53 void setTargetSurfaceTransformsAreAnimating(bool animating) { m_targetSurfac
eTransformsAreAnimating = animating; } | 53 void setTargetSurfaceTransformsAreAnimating(bool animating) { m_targetSurfac
eTransformsAreAnimating = animating; } |
54 bool screenSpaceTransformsAreAnimating() const { return m_screenSpaceTransfo
rmsAreAnimating; } | 54 bool screenSpaceTransformsAreAnimating() const { return m_screenSpaceTransfo
rmsAreAnimating; } |
55 void setScreenSpaceTransformsAreAnimating(bool animating) { m_screenSpaceTra
nsformsAreAnimating = animating; } | 55 void setScreenSpaceTransformsAreAnimating(bool animating) { m_screenSpaceTra
nsformsAreAnimating = animating; } |
56 | 56 |
57 const IntRect& clipRect() const { return m_clipRect; } | 57 const IntRect& clipRect() const { return m_clipRect; } |
58 void setClipRect(const IntRect& clipRect) { m_clipRect = clipRect; } | 58 void setClipRect(const IntRect& clipRect) { m_clipRect = clipRect; } |
59 | 59 |
60 void clearLayerList() { m_layerList.clear(); } | |
61 Vector<RefPtr<LayerChromium> >& layerList() { return m_layerList; } | 60 Vector<RefPtr<LayerChromium> >& layerList() { return m_layerList; } |
| 61 // A no-op since DelegatedRendererLayers on the main thread don't have any |
| 62 // RenderPasses so they can't contribute to a surface. |
| 63 void addContributingDelegatedRenderPassLayer(LayerChromium*) { } |
| 64 void clearLayerLists() { m_layerList.clear(); } |
62 | 65 |
63 void setNearestAncestorThatMovesPixels(RenderSurfaceChromium* surface) { m_n
earestAncestorThatMovesPixels = surface; } | 66 void setNearestAncestorThatMovesPixels(RenderSurfaceChromium* surface) { m_n
earestAncestorThatMovesPixels = surface; } |
64 const RenderSurfaceChromium* nearestAncestorThatMovesPixels() const { return
m_nearestAncestorThatMovesPixels; } | 67 const RenderSurfaceChromium* nearestAncestorThatMovesPixels() const { return
m_nearestAncestorThatMovesPixels; } |
65 | 68 |
66 private: | 69 private: |
67 LayerChromium* m_owningLayer; | 70 LayerChromium* m_owningLayer; |
68 | 71 |
69 // Uses this surface's space. | 72 // Uses this surface's space. |
70 IntRect m_contentRect; | 73 IntRect m_contentRect; |
71 | 74 |
(...skipping 18 matching lines...) Expand all Loading... |
90 // For CCLayerIteratorActions | 93 // For CCLayerIteratorActions |
91 int m_targetRenderSurfaceLayerIndexHistory; | 94 int m_targetRenderSurfaceLayerIndexHistory; |
92 int m_currentLayerIndexHistory; | 95 int m_currentLayerIndexHistory; |
93 friend struct CCLayerIteratorActions; | 96 friend struct CCLayerIteratorActions; |
94 }; | 97 }; |
95 | 98 |
96 } | 99 } |
97 #endif // USE(ACCELERATED_COMPOSITING) | 100 #endif // USE(ACCELERATED_COMPOSITING) |
98 | 101 |
99 #endif | 102 #endif |
OLD | NEW |