Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: cc/RenderSurfaceChromium.h

Issue 10916307: Add the ubercomp DelegatedRendererLayer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use OwnPtrVector Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/LayerChromium.h ('k') | cc/cc.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « cc/LayerChromium.h ('k') | cc/cc.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698