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 13 matching lines...) Expand all Loading... |
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/PaintLayerCompositor.h" | 30 #include "core/layout/compositing/PaintLayerCompositor.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 "platform/graphics/SquashingDisallowedReasons.h" | 33 #include "platform/graphics/SquashingDisallowedReasons.h" |
34 #include "wtf/Allocator.h" | 34 #include "platform/wtf/Allocator.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 class CompositedLayerMapping; | 38 class CompositedLayerMapping; |
39 class PaintLayer; | 39 class PaintLayer; |
40 | 40 |
41 class CompositingLayerAssigner { | 41 class CompositingLayerAssigner { |
42 STACK_ALLOCATED(); | 42 STACK_ALLOCATED(); |
43 | 43 |
44 public: | 44 public: |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 Vector<PaintLayer*>& layers_needing_paint_invalidation); | 108 Vector<PaintLayer*>& layers_needing_paint_invalidation); |
109 bool NeedsOwnBacking(const PaintLayer*) const; | 109 bool NeedsOwnBacking(const PaintLayer*) const; |
110 | 110 |
111 PaintLayerCompositor* compositor_; | 111 PaintLayerCompositor* compositor_; |
112 bool layers_changed_; | 112 bool layers_changed_; |
113 }; | 113 }; |
114 | 114 |
115 } // namespace blink | 115 } // namespace blink |
116 | 116 |
117 #endif // CompositingLayerAssigner_h | 117 #endif // CompositingLayerAssigner_h |
OLD | NEW |