| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CompositingRecorder_h | 5 #ifndef CompositingRecorder_h |
| 6 #define CompositingRecorder_h | 6 #define CompositingRecorder_h |
| 7 | 7 |
| 8 #include "platform/graphics/GraphicsTypes.h" | 8 #include "platform/graphics/GraphicsTypes.h" |
| 9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
| 10 #include "public/platform/WebBlendMode.h" | 10 #include "public/platform/WebBlendMode.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class GraphicsContext; | 14 class GraphicsContext; |
| 15 class RenderObject; | 15 class LayoutObject; |
| 16 | 16 |
| 17 class CompositingRecorder { | 17 class CompositingRecorder { |
| 18 public: | 18 public: |
| 19 explicit CompositingRecorder(GraphicsContext*, DisplayItemClient, const Comp
ositeOperator preCompositeOp, const WebBlendMode& preBlendMode, const float opac
ity, const CompositeOperator postCompositeOp); | 19 explicit CompositingRecorder(GraphicsContext*, DisplayItemClient, const Comp
ositeOperator preCompositeOp, const WebBlendMode& preBlendMode, const float opac
ity, const CompositeOperator postCompositeOp); |
| 20 | 20 |
| 21 ~CompositingRecorder(); | 21 ~CompositingRecorder(); |
| 22 | 22 |
| 23 private: | 23 private: |
| 24 DisplayItemClient m_client; | 24 DisplayItemClient m_client; |
| 25 GraphicsContext* m_graphicsContext; | 25 GraphicsContext* m_graphicsContext; |
| 26 }; | 26 }; |
| 27 | 27 |
| 28 } // namespace blink | 28 } // namespace blink |
| 29 | 29 |
| 30 #endif // CompositingRecorder_h | 30 #endif // CompositingRecorder_h |
| OLD | NEW |