| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 virtual void invalidateTargetElementForTesting() {} | 71 virtual void invalidateTargetElementForTesting() {} |
| 72 virtual void notifyPaint(bool isFirstPaint, | 72 virtual void notifyPaint(bool isFirstPaint, |
| 73 bool textPainted, | 73 bool textPainted, |
| 74 bool imagePainted) {} | 74 bool imagePainted) {} |
| 75 | 75 |
| 76 virtual IntRect computeInterestRect( | 76 virtual IntRect computeInterestRect( |
| 77 const GraphicsLayer*, | 77 const GraphicsLayer*, |
| 78 const IntRect& previousInterestRect) const = 0; | 78 const IntRect& previousInterestRect) const = 0; |
| 79 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); } | 79 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); } |
| 80 // Returns whether the client needs to be repainted with respect to the given
graphics layer. | 80 // Returns whether the client needs to be repainted with respect to the given |
| 81 // graphics layer. |
| 81 virtual bool needsRepaint(const GraphicsLayer&) const = 0; | 82 virtual bool needsRepaint(const GraphicsLayer&) const = 0; |
| 82 virtual void paintContents(const GraphicsLayer*, | 83 virtual void paintContents(const GraphicsLayer*, |
| 83 GraphicsContext&, | 84 GraphicsContext&, |
| 84 GraphicsLayerPaintingPhase, | 85 GraphicsLayerPaintingPhase, |
| 85 const IntRect& interestRect) const = 0; | 86 const IntRect& interestRect) const = 0; |
| 86 | 87 |
| 87 virtual bool isTrackingRasterInvalidations() const { return false; } | 88 virtual bool isTrackingRasterInvalidations() const { return false; } |
| 88 | 89 |
| 89 virtual String debugName(const GraphicsLayer*) const = 0; | 90 virtual String debugName(const GraphicsLayer*) const = 0; |
| 90 | 91 |
| 91 #if ENABLE(ASSERT) | 92 #if ENABLE(ASSERT) |
| 92 // CompositedLayerMapping overrides this to verify that it is not | 93 // CompositedLayerMapping overrides this to verify that it is not |
| 93 // currently painting contents. An ASSERT fails, if it is. | 94 // currently painting contents. An ASSERT fails, if it is. |
| 94 // This is executed in GraphicsLayer construction and destruction | 95 // This is executed in GraphicsLayer construction and destruction |
| 95 // to verify that we don't create or destroy GraphicsLayers | 96 // to verify that we don't create or destroy GraphicsLayers |
| 96 // while painting. | 97 // while painting. |
| 97 virtual void verifyNotPainting() {} | 98 virtual void verifyNotPainting() {} |
| 98 #endif | 99 #endif |
| 99 }; | 100 }; |
| 100 | 101 |
| 101 } // namespace blink | 102 } // namespace blink |
| 102 | 103 |
| 103 #endif // GraphicsLayerClient_h | 104 #endif // GraphicsLayerClient_h |
| OLD | NEW |