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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 notifyFirstPaint() { } | 68 virtual void notifyFirstPaint() { } |
69 virtual void notifyFirstTextPaint() { } | 69 virtual void notifyFirstTextPaint() { } |
70 virtual void notifyFirstImagePaint() { } | 70 virtual void notifyFirstImagePaint() { } |
71 | 71 |
72 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect* inClip) const = 0; | 72 // Paints contents covering interest rect if given, or covering the default
interest rect calculated based |
| 73 // on the layer size and the visible area. Returns the actual interest rect
used. |
| 74 virtual IntRect paintContents(const GraphicsLayer*, GraphicsContext&, Graphi
csLayerPaintingPhase, const IntRect* interestRect) const = 0; |
73 virtual bool isTrackingPaintInvalidations() const { return false; } | 75 virtual bool isTrackingPaintInvalidations() const { return false; } |
74 | 76 |
75 virtual String debugName(const GraphicsLayer*) = 0; | 77 virtual String debugName(const GraphicsLayer*) = 0; |
76 | 78 |
77 #if ENABLE(ASSERT) | 79 #if ENABLE(ASSERT) |
78 // CompositedLayerMapping overrides this to verify that it is not | 80 // CompositedLayerMapping overrides this to verify that it is not |
79 // currently painting contents. An ASSERT fails, if it is. | 81 // currently painting contents. An ASSERT fails, if it is. |
80 // This is executed in GraphicsLayer construction and destruction | 82 // This is executed in GraphicsLayer construction and destruction |
81 // to verify that we don't create or destroy GraphicsLayers | 83 // to verify that we don't create or destroy GraphicsLayers |
82 // while painting. | 84 // while painting. |
83 virtual void verifyNotPainting() { } | 85 virtual void verifyNotPainting() { } |
84 #endif | 86 #endif |
85 }; | 87 }; |
86 | 88 |
87 } // namespace blink | 89 } // namespace blink |
88 | 90 |
89 #endif // GraphicsLayerClient_h | 91 #endif // GraphicsLayerClient_h |
OLD | NEW |