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

Side by Side Diff: Source/WebCore/platform/graphics/chromium/cc/CCLayerImpl.h

Issue 7046081: Merge 88496 - 2011-06-09 James Robinson <jamesr@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/782/
Patch Set: Created 9 years, 6 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 void setOpacity(float opacity) { m_opacity = opacity; } 94 void setOpacity(float opacity) { m_opacity = opacity; }
95 float opacity() const { return m_opacity; } 95 float opacity() const { return m_opacity; }
96 96
97 void setPosition(const FloatPoint& position) { m_position = position; } 97 void setPosition(const FloatPoint& position) { m_position = position; }
98 const FloatPoint& position() const { return m_position; } 98 const FloatPoint& position() const { return m_position; }
99 99
100 void setPreserves3D(bool preserves3D) { m_preserves3D = preserves3D; } 100 void setPreserves3D(bool preserves3D) { m_preserves3D = preserves3D; }
101 bool preserves3D() const { return m_preserves3D; } 101 bool preserves3D() const { return m_preserves3D; }
102 102
103 void setUsesLayerScissor(bool usesLayerScissor) { m_usesLayerScissor = usesL ayerScissor; }
104 bool usesLayerScissor() const { return m_usesLayerScissor; }
105
103 void setSublayerTransform(const TransformationMatrix& sublayerTransform) { m _sublayerTransform = sublayerTransform; } 106 void setSublayerTransform(const TransformationMatrix& sublayerTransform) { m _sublayerTransform = sublayerTransform; }
104 const TransformationMatrix& sublayerTransform() const { return m_sublayerTra nsform; } 107 const TransformationMatrix& sublayerTransform() const { return m_sublayerTra nsform; }
105 108
106 void setTransform(const TransformationMatrix& transform) { m_transform = tra nsform; } 109 void setTransform(const TransformationMatrix& transform) { m_transform = tra nsform; }
107 const TransformationMatrix& transform() const { return m_transform; } 110 const TransformationMatrix& transform() const { return m_transform; }
108 111
109 void setName(const String& name) { m_name = name; } 112 void setName(const String& name) { m_name = name; }
110 const String& name() const { return m_name; } 113 const String& name() const { return m_name; }
111 114
112 // Debug layer border - visual effect only, do not change geometry/clipping/ etc. 115 // Debug layer border - visual effect only, do not change geometry/clipping/ etc.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 179
177 // Whether the "back" of this layer should draw. 180 // Whether the "back" of this layer should draw.
178 bool m_doubleSided; 181 bool m_doubleSided;
179 182
180 bool m_masksToBounds; 183 bool m_masksToBounds;
181 float m_opacity; 184 float m_opacity;
182 FloatPoint m_position; 185 FloatPoint m_position;
183 bool m_preserves3D; 186 bool m_preserves3D;
184 TransformationMatrix m_sublayerTransform; 187 TransformationMatrix m_sublayerTransform;
185 TransformationMatrix m_transform; 188 TransformationMatrix m_transform;
189 bool m_usesLayerScissor;
186 190
187 // Properties owned exclusively by this CCLayerImpl. 191 // Properties owned exclusively by this CCLayerImpl.
188 // Debugging. 192 // Debugging.
189 #ifndef NDEBUG 193 #ifndef NDEBUG
190 int m_debugID; 194 int m_debugID;
191 #endif 195 #endif
192 196
193 String m_name; 197 String m_name;
194 198
195 // Render surface this layer draws into. This is a surface that can belong 199 // Render surface this layer draws into. This is a surface that can belong
(...skipping 25 matching lines...) Expand all
221 // Hierarchical bounding rect containing the layer and its descendants. 225 // Hierarchical bounding rect containing the layer and its descendants.
222 IntRect m_drawableContentRect; 226 IntRect m_drawableContentRect;
223 227
224 // Points to the layer renderer that updates and draws this layer. 228 // Points to the layer renderer that updates and draws this layer.
225 RefPtr<LayerRendererChromium> m_layerRenderer; 229 RefPtr<LayerRendererChromium> m_layerRenderer;
226 }; 230 };
227 231
228 } 232 }
229 233
230 #endif // CCLayerImpl_h 234 #endif // CCLayerImpl_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698