| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2014 Google Inc. All rights reserved. | 3 * Copyright (C) 2014 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 public: | 53 public: |
| 54 GraphicsLayerUpdater(); | 54 GraphicsLayerUpdater(); |
| 55 ~GraphicsLayerUpdater(); | 55 ~GraphicsLayerUpdater(); |
| 56 | 56 |
| 57 enum UpdateType { | 57 enum UpdateType { |
| 58 DoNotForceUpdate, | 58 DoNotForceUpdate, |
| 59 ForceUpdate, | 59 ForceUpdate, |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 void update(RenderLayer&, UpdateType = DoNotForceUpdate, const UpdateContext
& = UpdateContext()); | 62 void update(Vector<RenderLayer*>& layersNeedingPaintInvalidation, RenderLaye
r&, UpdateType = DoNotForceUpdate, const UpdateContext& = UpdateContext()); |
| 63 void rebuildTree(RenderLayer&, GraphicsLayerVector& childLayersOfEnclosingLa
yer); | 63 void rebuildTree(RenderLayer&, GraphicsLayerVector& childLayersOfEnclosingLa
yer); |
| 64 | 64 |
| 65 bool needsRebuildTree() const { return m_needsRebuildTree; } | 65 bool needsRebuildTree() const { return m_needsRebuildTree; } |
| 66 | 66 |
| 67 #if ASSERT_ENABLED | 67 #if ASSERT_ENABLED |
| 68 static void assertNeedsToUpdateGraphicsLayerBitsCleared(RenderLayer&); | 68 static void assertNeedsToUpdateGraphicsLayerBitsCleared(RenderLayer&); |
| 69 #endif | 69 #endif |
| 70 | 70 |
| 71 private: | 71 private: |
| 72 bool m_needsRebuildTree; | 72 bool m_needsRebuildTree; |
| 73 }; | 73 }; |
| 74 | 74 |
| 75 } // namespace WebCore | 75 } // namespace WebCore |
| 76 | 76 |
| 77 #endif // GraphicsLayerUpdater_h | 77 #endif // GraphicsLayerUpdater_h |
| OLD | NEW |