| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 UI_COMPOSITOR_PAINT_RECORDER_H_ | 5 #ifndef UI_COMPOSITOR_PAINT_RECORDER_H_ |
| 6 #define UI_COMPOSITOR_PAINT_RECORDER_H_ | 6 #define UI_COMPOSITOR_PAINT_RECORDER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "ui/compositor/compositor_export.h" | 11 #include "ui/compositor/compositor_export.h" |
| 12 #include "ui/gfx/canvas.h" | 12 #include "ui/gfx/canvas.h" |
| 13 #include "ui/gfx/geometry/rect.h" | 13 #include "ui/gfx/geometry/rect.h" |
| 14 | 14 |
| 15 namespace cc { | |
| 16 class DisplayItemList; | |
| 17 } | |
| 18 | |
| 19 namespace gfx { | 15 namespace gfx { |
| 20 class Canvas; | 16 class Canvas; |
| 21 } | 17 } |
| 22 | 18 |
| 23 class SkCanvas; | |
| 24 class SkPictureRecorder; | |
| 25 | |
| 26 namespace ui { | 19 namespace ui { |
| 27 class PaintCache; | 20 class PaintCache; |
| 28 class PaintContext; | 21 class PaintContext; |
| 29 | 22 |
| 30 // A class to hide the complexity behind setting up a recording into a | 23 // A class to hide the complexity behind setting up a recording into a |
| 31 // DisplayItem. This is meant to be short-lived within the scope of recording | 24 // DisplayItem. This is meant to be short-lived within the scope of recording |
| 32 // taking place, the DisplayItem should be removed from the PaintRecorder once | 25 // taking place, the DisplayItem should be removed from the PaintRecorder once |
| 33 // recording is complete and can be cached. | 26 // recording is complete and can be cached. |
| 34 class COMPOSITOR_EXPORT PaintRecorder { | 27 class COMPOSITOR_EXPORT PaintRecorder { |
| 35 public: | 28 public: |
| (...skipping 13 matching lines...) Expand all Loading... |
| 49 gfx::Canvas canvas_; | 42 gfx::Canvas canvas_; |
| 50 PaintCache* cache_; | 43 PaintCache* cache_; |
| 51 gfx::Rect bounds_in_layer_; | 44 gfx::Rect bounds_in_layer_; |
| 52 | 45 |
| 53 DISALLOW_COPY_AND_ASSIGN(PaintRecorder); | 46 DISALLOW_COPY_AND_ASSIGN(PaintRecorder); |
| 54 }; | 47 }; |
| 55 | 48 |
| 56 } // namespace ui | 49 } // namespace ui |
| 57 | 50 |
| 58 #endif // UI_COMPOSITOR_PAINT_RECORDER_H_ | 51 #endif // UI_COMPOSITOR_PAINT_RECORDER_H_ |
| OLD | NEW |