| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 enum { | 52 enum { |
| 53 LayerTreeNormal = 0, | 53 LayerTreeNormal = 0, |
| 54 LayerTreeIncludesDebugInfo = | 54 LayerTreeIncludesDebugInfo = |
| 55 1 << 0, // Dump extra debugging info like layer addresses. | 55 1 << 0, // Dump extra debugging info like layer addresses. |
| 56 LayerTreeIncludesPaintInvalidations = 1 << 1, | 56 LayerTreeIncludesPaintInvalidations = 1 << 1, |
| 57 LayerTreeIncludesPaintingPhases = 1 << 2, | 57 LayerTreeIncludesPaintingPhases = 1 << 2, |
| 58 LayerTreeIncludesRootLayer = 1 << 3, | 58 LayerTreeIncludesRootLayer = 1 << 3, |
| 59 LayerTreeIncludesClipAndScrollParents = 1 << 4, | 59 LayerTreeIncludesClipAndScrollParents = 1 << 4, |
| 60 LayerTreeIncludesCompositingReasons = 1 << 5, | 60 LayerTreeIncludesCompositingReasons = 1 << 5, |
| 61 OutputChildrenAsLayerList = |
| 62 1 |
| 63 << 6, // Outputs all children of the given layer as a layer list, in pain
t order. |
| 61 }; | 64 }; |
| 62 typedef unsigned LayerTreeFlags; | 65 typedef unsigned LayerTreeFlags; |
| 63 | 66 |
| 64 class PLATFORM_EXPORT GraphicsLayerClient { | 67 class PLATFORM_EXPORT GraphicsLayerClient { |
| 65 public: | 68 public: |
| 66 virtual ~GraphicsLayerClient() {} | 69 virtual ~GraphicsLayerClient() {} |
| 67 | 70 |
| 68 virtual void invalidateTargetElementForTesting() {} | 71 virtual void invalidateTargetElementForTesting() {} |
| 69 virtual void notifyPaint(bool isFirstPaint, | 72 virtual void notifyPaint(bool isFirstPaint, |
| 70 bool textPainted, | 73 bool textPainted, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 91 // This is executed in GraphicsLayer construction and destruction | 94 // This is executed in GraphicsLayer construction and destruction |
| 92 // to verify that we don't create or destroy GraphicsLayers | 95 // to verify that we don't create or destroy GraphicsLayers |
| 93 // while painting. | 96 // while painting. |
| 94 virtual void verifyNotPainting() {} | 97 virtual void verifyNotPainting() {} |
| 95 #endif | 98 #endif |
| 96 }; | 99 }; |
| 97 | 100 |
| 98 } // namespace blink | 101 } // namespace blink |
| 99 | 102 |
| 100 #endif // GraphicsLayerClient_h | 103 #endif // GraphicsLayerClient_h |
| OLD | NEW |