| 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 12 matching lines...) Expand all Loading... |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #ifndef CompositingLayerAssigner_h | 27 #ifndef CompositingLayerAssigner_h |
| 28 #define CompositingLayerAssigner_h | 28 #define CompositingLayerAssigner_h |
| 29 | 29 |
| 30 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" | 30 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" |
| 31 #include "platform/geometry/IntRect.h" | 31 #include "platform/geometry/IntRect.h" |
| 32 #include "platform/geometry/LayoutPoint.h" | 32 #include "platform/geometry/LayoutPoint.h" |
| 33 #include "wtf/Allocator.h" |
| 33 | 34 |
| 34 namespace blink { | 35 namespace blink { |
| 35 | 36 |
| 36 class CompositedDeprecatedPaintLayerMapping; | 37 class CompositedDeprecatedPaintLayerMapping; |
| 37 class DeprecatedPaintLayer; | 38 class DeprecatedPaintLayer; |
| 38 | 39 |
| 39 class CompositingLayerAssigner { | 40 class CompositingLayerAssigner { |
| 41 STACK_ALLOCATED(); |
| 40 public: | 42 public: |
| 41 explicit CompositingLayerAssigner(DeprecatedPaintLayerCompositor*); | 43 explicit CompositingLayerAssigner(DeprecatedPaintLayerCompositor*); |
| 42 ~CompositingLayerAssigner(); | 44 ~CompositingLayerAssigner(); |
| 43 | 45 |
| 44 void assign(DeprecatedPaintLayer* updateRoot, Vector<DeprecatedPaintLayer*>&
layersNeedingPaintInvalidation); | 46 void assign(DeprecatedPaintLayer* updateRoot, Vector<DeprecatedPaintLayer*>&
layersNeedingPaintInvalidation); |
| 45 | 47 |
| 46 bool layersChanged() const { return m_layersChanged; } | 48 bool layersChanged() const { return m_layersChanged; } |
| 47 | 49 |
| 48 // FIXME: This function should be private. We should remove the one caller | 50 // FIXME: This function should be private. We should remove the one caller |
| 49 // once we've fixed the compositing chicken/egg issues. | 51 // once we've fixed the compositing chicken/egg issues. |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 void updateSquashingAssignment(DeprecatedPaintLayer*, SquashingState&, Compo
sitingStateTransitionType, Vector<DeprecatedPaintLayer*>& layersNeedingPaintInva
lidation); | 89 void updateSquashingAssignment(DeprecatedPaintLayer*, SquashingState&, Compo
sitingStateTransitionType, Vector<DeprecatedPaintLayer*>& layersNeedingPaintInva
lidation); |
| 88 bool needsOwnBacking(const DeprecatedPaintLayer*) const; | 90 bool needsOwnBacking(const DeprecatedPaintLayer*) const; |
| 89 | 91 |
| 90 DeprecatedPaintLayerCompositor* m_compositor; | 92 DeprecatedPaintLayerCompositor* m_compositor; |
| 91 bool m_layersChanged; | 93 bool m_layersChanged; |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 } // namespace blink | 96 } // namespace blink |
| 95 | 97 |
| 96 #endif // CompositingLayerAssigner_h | 98 #endif // CompositingLayerAssigner_h |
| OLD | NEW |