| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 | 25 |
| 26 #ifndef GraphicsLayerClient_h | 26 #ifndef GraphicsLayerClient_h |
| 27 #define GraphicsLayerClient_h | 27 #define GraphicsLayerClient_h |
| 28 | 28 |
| 29 #include "platform/PlatformExport.h" | 29 #include "platform/PlatformExport.h" |
| 30 #include "platform/geometry/LayoutSize.h" | 30 #include "platform/geometry/LayoutSize.h" |
| 31 #include "wtf/text/WTFString.h" | 31 #include "wtf/text/WTFString.h" |
| 32 | 32 |
| 33 namespace blink { | 33 namespace blink { |
| 34 | 34 |
| 35 class DisplayItemClient; |
| 35 class GraphicsContext; | 36 class GraphicsContext; |
| 36 class GraphicsLayer; | 37 class GraphicsLayer; |
| 37 class IntRect; | 38 class IntRect; |
| 38 | 39 |
| 39 enum GraphicsLayerPaintingPhaseFlags { | 40 enum GraphicsLayerPaintingPhaseFlags { |
| 40 GraphicsLayerPaintBackground = (1 << 0), | 41 GraphicsLayerPaintBackground = (1 << 0), |
| 41 GraphicsLayerPaintForeground = (1 << 1), | 42 GraphicsLayerPaintForeground = (1 << 1), |
| 42 GraphicsLayerPaintMask = (1 << 2), | 43 GraphicsLayerPaintMask = (1 << 2), |
| 43 GraphicsLayerPaintOverflowContents = (1 << 3), | 44 GraphicsLayerPaintOverflowContents = (1 << 3), |
| 44 GraphicsLayerPaintCompositedScroll = (1 << 4), | 45 GraphicsLayerPaintCompositedScroll = (1 << 4), |
| 45 GraphicsLayerPaintChildClippingMask = (1 << 5), | 46 GraphicsLayerPaintChildClippingMask = (1 << 5), |
| 46 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap
hicsLayerPaintForeground | GraphicsLayerPaintMask) | 47 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap
hicsLayerPaintForeground | GraphicsLayerPaintMask) |
| 47 }; | 48 }; |
| 48 typedef unsigned GraphicsLayerPaintingPhase; | 49 typedef unsigned GraphicsLayerPaintingPhase; |
| 49 | 50 |
| 50 enum { | 51 enum { |
| 51 LayerTreeNormal = 0, | 52 LayerTreeNormal = 0, |
| 52 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. | 53 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer
addresses. |
| 53 LayerTreeIncludesPaintInvalidationRects = 1 << 1, | 54 LayerTreeIncludesPaintInvalidations = 1 << 1, |
| 54 LayerTreeIncludesPaintingPhases = 1 << 2, | 55 LayerTreeIncludesPaintingPhases = 1 << 2, |
| 55 LayerTreeIncludesRootLayer = 1 << 3, | 56 LayerTreeIncludesRootLayer = 1 << 3, |
| 56 LayerTreeIncludesClipAndScrollParents = 1 << 4, | 57 LayerTreeIncludesClipAndScrollParents = 1 << 4, |
| 57 LayerTreeIncludesPaintInvalidationObjects = 1 << 5, | 58 LayerTreeIncludesCompositingReasons = 1 << 5, |
| 58 LayerTreeIncludesCompositingReasons = 1 << 6, | |
| 59 }; | 59 }; |
| 60 typedef unsigned LayerTreeFlags; | 60 typedef unsigned LayerTreeFlags; |
| 61 | 61 |
| 62 class PLATFORM_EXPORT GraphicsLayerClient { | 62 class PLATFORM_EXPORT GraphicsLayerClient { |
| 63 public: | 63 public: |
| 64 virtual ~GraphicsLayerClient() {} | 64 virtual ~GraphicsLayerClient() {} |
| 65 | 65 |
| 66 virtual void notifyFirstPaint() { } | 66 virtual void notifyFirstPaint() { } |
| 67 virtual void notifyFirstTextPaint() { } | 67 virtual void notifyFirstTextPaint() { } |
| 68 virtual void notifyFirstImagePaint() { } | 68 virtual void notifyFirstImagePaint() { } |
| (...skipping 14 matching lines...) Expand all Loading... |
| 83 // This is executed in GraphicsLayer construction and destruction | 83 // This is executed in GraphicsLayer construction and destruction |
| 84 // to verify that we don't create or destroy GraphicsLayers | 84 // to verify that we don't create or destroy GraphicsLayers |
| 85 // while painting. | 85 // while painting. |
| 86 virtual void verifyNotPainting() { } | 86 virtual void verifyNotPainting() { } |
| 87 #endif | 87 #endif |
| 88 }; | 88 }; |
| 89 | 89 |
| 90 } // namespace blink | 90 } // namespace blink |
| 91 | 91 |
| 92 #endif // GraphicsLayerClient_h | 92 #endif // GraphicsLayerClient_h |
| OLD | NEW |