OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2013 Intel Corporation. All rights reserved. | 3 * Copyright (C) 2013 Intel Corporation. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 // opaque means that we know the layer contents have no alpha | 187 // opaque means that we know the layer contents have no alpha |
188 bool contentsOpaque() const { return m_contentsOpaque; } | 188 bool contentsOpaque() const { return m_contentsOpaque; } |
189 void setContentsOpaque(bool); | 189 void setContentsOpaque(bool); |
190 | 190 |
191 bool backfaceVisibility() const { return m_backfaceVisibility; } | 191 bool backfaceVisibility() const { return m_backfaceVisibility; } |
192 void setBackfaceVisibility(bool visible); | 192 void setBackfaceVisibility(bool visible); |
193 | 193 |
194 float opacity() const { return m_opacity; } | 194 float opacity() const { return m_opacity; } |
195 void setOpacity(float); | 195 void setOpacity(float); |
196 | 196 |
| 197 BlendMode blendMode() const { return m_blendMode; } |
| 198 void setBlendMode(BlendMode); |
| 199 |
| 200 bool isRootForIsolatedGroup() const { return m_isRootForIsolatedGroup; } |
| 201 void setIsRootForIsolatedGroup(bool); |
| 202 |
197 const FilterOperations& filters() const { return m_filters; } | 203 const FilterOperations& filters() const { return m_filters; } |
198 | 204 |
199 // Returns true if filter can be rendered by the compositor | 205 // Returns true if filter can be rendered by the compositor |
200 bool setFilters(const FilterOperations&); | 206 bool setFilters(const FilterOperations&); |
201 void setBackgroundFilters(const FilterOperations&); | 207 void setBackgroundFilters(const FilterOperations&); |
202 | 208 |
203 // Some GraphicsLayers paint only the foreground or the background content | 209 // Some GraphicsLayers paint only the foreground or the background content |
204 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } | 210 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } |
205 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase =
phase; } | 211 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase =
phase; } |
206 | 212 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 FloatSize m_size; | 350 FloatSize m_size; |
345 FloatPoint m_boundsOrigin; | 351 FloatPoint m_boundsOrigin; |
346 | 352 |
347 TransformationMatrix m_transform; | 353 TransformationMatrix m_transform; |
348 TransformationMatrix m_childrenTransform; | 354 TransformationMatrix m_childrenTransform; |
349 | 355 |
350 Color m_backgroundColor; | 356 Color m_backgroundColor; |
351 float m_opacity; | 357 float m_opacity; |
352 float m_zPosition; | 358 float m_zPosition; |
353 | 359 |
| 360 BlendMode m_blendMode; |
| 361 |
354 FilterOperations m_filters; | 362 FilterOperations m_filters; |
355 | 363 |
356 bool m_contentsOpaque : 1; | 364 bool m_contentsOpaque : 1; |
357 bool m_preserves3D: 1; | 365 bool m_preserves3D: 1; |
358 bool m_backfaceVisibility : 1; | 366 bool m_backfaceVisibility : 1; |
359 bool m_masksToBounds : 1; | 367 bool m_masksToBounds : 1; |
360 bool m_drawsContent : 1; | 368 bool m_drawsContent : 1; |
361 bool m_contentsVisible : 1; | 369 bool m_contentsVisible : 1; |
| 370 bool m_isRootForIsolatedGroup : 1; |
362 | 371 |
363 bool m_hasScrollParent : 1; | 372 bool m_hasScrollParent : 1; |
364 bool m_hasClipParent : 1; | 373 bool m_hasClipParent : 1; |
365 | 374 |
366 GraphicsLayerPaintingPhase m_paintingPhase; | 375 GraphicsLayerPaintingPhase m_paintingPhase; |
367 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat
ion of layer contents | 376 CompositingCoordinatesOrientation m_contentsOrientation; // affects orientat
ion of layer contents |
368 | 377 |
369 Vector<GraphicsLayer*> m_children; | 378 Vector<GraphicsLayer*> m_children; |
370 GraphicsLayer* m_parent; | 379 GraphicsLayer* m_parent; |
371 | 380 |
(...skipping 29 matching lines...) Expand all Loading... |
401 | 410 |
402 | 411 |
403 } // namespace WebCore | 412 } // namespace WebCore |
404 | 413 |
405 #ifndef NDEBUG | 414 #ifndef NDEBUG |
406 // Outside the WebCore namespace for ease of invocation from gdb. | 415 // Outside the WebCore namespace for ease of invocation from gdb. |
407 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 416 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
408 #endif | 417 #endif |
409 | 418 |
410 #endif // GraphicsLayer_h | 419 #endif // GraphicsLayer_h |
OLD | NEW |