| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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. | 65 // Callback for when compositor animation started. |
| 66 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me, int group) { } | 66 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi
me, int group) { } |
| 67 | 67 |
| 68 virtual void notifyTextPainted() { } | 68 virtual void notifyTextPainted() { } |
| 69 | 69 |
| 70 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) const = 0; | 70 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& inClip) const = 0; |
| 71 virtual void paintContentsIfNeeded(const GraphicsLayer*, GraphicsContext&, G
raphicsLayerPaintingPhase) const = 0; |
| 71 virtual bool isTrackingPaintInvalidations() const { return false; } | 72 virtual bool isTrackingPaintInvalidations() const { return false; } |
| 72 | 73 |
| 73 virtual String debugName(const GraphicsLayer*) = 0; | 74 virtual String debugName(const GraphicsLayer*) = 0; |
| 74 | 75 |
| 75 #if ENABLE(ASSERT) | 76 #if ENABLE(ASSERT) |
| 76 // CompositedLayerMapping overrides this to verify that it is not | 77 // CompositedLayerMapping overrides this to verify that it is not |
| 77 // currently painting contents. An ASSERT fails, if it is. | 78 // currently painting contents. An ASSERT fails, if it is. |
| 78 // This is executed in GraphicsLayer construction and destruction | 79 // This is executed in GraphicsLayer construction and destruction |
| 79 // to verify that we don't create or destroy GraphicsLayers | 80 // to verify that we don't create or destroy GraphicsLayers |
| 80 // while painting. | 81 // while painting. |
| 81 virtual void verifyNotPainting() { } | 82 virtual void verifyNotPainting() { } |
| 82 #endif | 83 #endif |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 } // namespace blink | 86 } // namespace blink |
| 86 | 87 |
| 87 #endif // GraphicsLayerClient_h | 88 #endif // GraphicsLayerClient_h |
| OLD | NEW |