| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual bool needsRepaint(const GraphicsLayer&) const = 0; | 82 virtual bool needsRepaint(const GraphicsLayer&) const = 0; |
| 83 virtual void paintContents(const GraphicsLayer*, | 83 virtual void paintContents(const GraphicsLayer*, |
| 84 GraphicsContext&, | 84 GraphicsContext&, |
| 85 GraphicsLayerPaintingPhase, | 85 GraphicsLayerPaintingPhase, |
| 86 const IntRect& interestRect) const = 0; | 86 const IntRect& interestRect) const = 0; |
| 87 | 87 |
| 88 virtual bool isTrackingRasterInvalidations() const { return false; } | 88 virtual bool isTrackingRasterInvalidations() const { return false; } |
| 89 | 89 |
| 90 virtual String debugName(const GraphicsLayer*) const = 0; | 90 virtual String debugName(const GraphicsLayer*) const = 0; |
| 91 | 91 |
| 92 #if ENABLE(ASSERT) | 92 #if DCHECK_IS_ON() |
| 93 // CompositedLayerMapping overrides this to verify that it is not | 93 // CompositedLayerMapping overrides this to verify that it is not |
| 94 // currently painting contents. An ASSERT fails, if it is. | 94 // currently painting contents. An ASSERT fails, if it is. |
| 95 // This is executed in GraphicsLayer construction and destruction | 95 // This is executed in GraphicsLayer construction and destruction |
| 96 // to verify that we don't create or destroy GraphicsLayers | 96 // to verify that we don't create or destroy GraphicsLayers |
| 97 // while painting. | 97 // while painting. |
| 98 virtual void verifyNotPainting() {} | 98 virtual void verifyNotPainting() {} |
| 99 #endif | 99 #endif |
| 100 }; | 100 }; |
| 101 | 101 |
| 102 } // namespace blink | 102 } // namespace blink |
| 103 | 103 |
| 104 #endif // GraphicsLayerClient_h | 104 #endif // GraphicsLayerClient_h |
| OLD | NEW |