| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // opaque means that we know the layer contents have no alpha | 191 // opaque means that we know the layer contents have no alpha |
| 192 bool contentsOpaque() const { return m_contentsOpaque; } | 192 bool contentsOpaque() const { return m_contentsOpaque; } |
| 193 void setContentsOpaque(bool); | 193 void setContentsOpaque(bool); |
| 194 | 194 |
| 195 bool backfaceVisibility() const { return m_backfaceVisibility; } | 195 bool backfaceVisibility() const { return m_backfaceVisibility; } |
| 196 void setBackfaceVisibility(bool visible); | 196 void setBackfaceVisibility(bool visible); |
| 197 | 197 |
| 198 float opacity() const { return m_opacity; } | 198 float opacity() const { return m_opacity; } |
| 199 void setOpacity(float); | 199 void setOpacity(float); |
| 200 | 200 |
| 201 blink::WebBlendMode blendMode() const { return m_blendMode; } |
| 202 void setBlendMode(blink::WebBlendMode); |
| 203 |
| 204 bool isRootForIsolatedGroup() const { return m_isRootForIsolatedGroup; } |
| 205 void setIsRootForIsolatedGroup(bool); |
| 206 |
| 201 const FilterOperations& filters() const { return m_filters; } | 207 const FilterOperations& filters() const { return m_filters; } |
| 202 | 208 |
| 203 // Returns true if filter can be rendered by the compositor | 209 // Returns true if filter can be rendered by the compositor |
| 204 bool setFilters(const FilterOperations&); | 210 bool setFilters(const FilterOperations&); |
| 205 void setBackgroundFilters(const FilterOperations&); | 211 void setBackgroundFilters(const FilterOperations&); |
| 206 | 212 |
| 207 // Some GraphicsLayers paint only the foreground or the background content | 213 // Some GraphicsLayers paint only the foreground or the background content |
| 208 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } | 214 GraphicsLayerPaintingPhase paintingPhase() const { return m_paintingPhase; } |
| 209 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase =
phase; } | 215 void setPaintingPhase(GraphicsLayerPaintingPhase phase) { m_paintingPhase =
phase; } |
| 210 | 216 |
| (...skipping 133 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 blink::WebBlendMode 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 | 413 |
| 405 | 414 |
| 406 } // namespace WebCore | 415 } // namespace WebCore |
| 407 | 416 |
| 408 #ifndef NDEBUG | 417 #ifndef NDEBUG |
| 409 // Outside the WebCore namespace for ease of invocation from gdb. | 418 // Outside the WebCore namespace for ease of invocation from gdb. |
| 410 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); | 419 void showGraphicsLayerTree(const WebCore::GraphicsLayer* layer); |
| 411 #endif | 420 #endif |
| 412 | 421 |
| 413 #endif // GraphicsLayer_h | 422 #endif // GraphicsLayer_h |
| OLD | NEW |