| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 LayerTreeIncludesClipAndScrollParents = 1 << 4, | 55 LayerTreeIncludesClipAndScrollParents = 1 << 4, |
| 56 LayerTreeIncludesScrollBlocksOn = 1 << 5, | 56 LayerTreeIncludesScrollBlocksOn = 1 << 5, |
| 57 LayerTreeIncludesPaintInvalidationObjects = 1 << 6, | 57 LayerTreeIncludesPaintInvalidationObjects = 1 << 6, |
| 58 }; | 58 }; |
| 59 typedef unsigned LayerTreeFlags; | 59 typedef unsigned LayerTreeFlags; |
| 60 | 60 |
| 61 class PLATFORM_EXPORT GraphicsLayerClient { | 61 class PLATFORM_EXPORT GraphicsLayerClient { |
| 62 public: | 62 public: |
| 63 virtual ~GraphicsLayerClient() {} | 63 virtual ~GraphicsLayerClient() {} |
| 64 | 64 |
| 65 // Callback for when compositor animation started. | |
| 66 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me, int group) { }; | |
| 67 | |
| 68 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) = 0; | 65 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) = 0; |
| 69 virtual bool isTrackingPaintInvalidations() const { return false; } | 66 virtual bool isTrackingPaintInvalidations() const { return false; } |
| 70 | 67 |
| 71 virtual String debugName(const GraphicsLayer*) = 0; | 68 virtual String debugName(const GraphicsLayer*) = 0; |
| 72 | 69 |
| 73 #if ENABLE(ASSERT) | 70 #if ENABLE(ASSERT) |
| 74 // CompositedLayerMapping overrides this to verify that it is not | 71 // CompositedLayerMapping overrides this to verify that it is not |
| 75 // currently painting contents. An ASSERT fails, if it is. | 72 // currently painting contents. An ASSERT fails, if it is. |
| 76 // This is executed in GraphicsLayer construction and destruction | 73 // This is executed in GraphicsLayer construction and destruction |
| 77 // to verify that we don't create or destroy GraphicsLayers | 74 // to verify that we don't create or destroy GraphicsLayers |
| 78 // while painting. | 75 // while painting. |
| 79 virtual void verifyNotPainting() { } | 76 virtual void verifyNotPainting() { } |
| 80 #endif | 77 #endif |
| 81 }; | 78 }; |
| 82 | 79 |
| 83 } // namespace blink | 80 } // namespace blink |
| 84 | 81 |
| 85 #endif // GraphicsLayerClient_h | 82 #endif // GraphicsLayerClient_h |
| OLD | NEW |