| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual ~GraphicsLayerClient() {} | 63 virtual ~GraphicsLayerClient() {} |
| 64 | 64 |
| 65 virtual void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePain
ted) { } | 65 virtual void notifyPaint(bool isFirstPaint, bool textPainted, bool imagePain
ted) { } |
| 66 | 66 |
| 67 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre
viousInterestRect) const = 0; | 67 virtual IntRect computeInterestRect(const GraphicsLayer*, const IntRect& pre
viousInterestRect) const = 0; |
| 68 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); } | 68 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); } |
| 69 // Returns whether the client needs to be repainted with respect to the give
n graphics layer. | 69 // Returns whether the client needs to be repainted with respect to the give
n graphics layer. |
| 70 virtual bool needsRepaint(const GraphicsLayer&) const = 0; | 70 virtual bool needsRepaint(const GraphicsLayer&) const = 0; |
| 71 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& interestRect) const = 0; | 71 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL
ayerPaintingPhase, const IntRect& interestRect) const = 0; |
| 72 | 72 |
| 73 virtual bool isTrackingPaintInvalidations() const { return false; } | 73 virtual bool isTrackingRasterInvalidations() const { return false; } |
| 74 | 74 |
| 75 virtual String debugName(const GraphicsLayer*) const = 0; | 75 virtual String debugName(const GraphicsLayer*) const = 0; |
| 76 | 76 |
| 77 #if ENABLE(ASSERT) | 77 #if ENABLE(ASSERT) |
| 78 // CompositedLayerMapping overrides this to verify that it is not | 78 // CompositedLayerMapping overrides this to verify that it is not |
| 79 // currently painting contents. An ASSERT fails, if it is. | 79 // currently painting contents. An ASSERT fails, if it is. |
| 80 // This is executed in GraphicsLayer construction and destruction | 80 // This is executed in GraphicsLayer construction and destruction |
| 81 // to verify that we don't create or destroy GraphicsLayers | 81 // to verify that we don't create or destroy GraphicsLayers |
| 82 // while painting. | 82 // while painting. |
| 83 virtual void verifyNotPainting() { } | 83 virtual void verifyNotPainting() { } |
| 84 #endif | 84 #endif |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace blink | 87 } // namespace blink |
| 88 | 88 |
| 89 #endif // GraphicsLayerClient_h | 89 #endif // GraphicsLayerClient_h |
| OLD | NEW |