OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 CC_OUTPUT_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CC_OUTPUT_COMPOSITOR_FRAME_SINK_H_ |
6 #define CC_OUTPUT_COMPOSITOR_FRAME_SINK_H_ | 6 #define CC_OUTPUT_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/threading/thread_checker.h" | 13 #include "base/threading/thread_checker.h" |
14 #include "cc/base/cc_export.h" | 14 #include "cc/base/cc_export.h" |
15 #include "cc/output/context_provider.h" | 15 #include "cc/output/context_provider.h" |
16 #include "cc/output/overlay_candidate_validator.h" | 16 #include "cc/output/overlay_candidate_validator.h" |
17 #include "cc/output/vulkan_context_provider.h" | 17 #include "cc/output/vulkan_context_provider.h" |
18 #include "cc/resources/returned_resource.h" | 18 #include "cc/resources/returned_resource.h" |
19 #include "gpu/command_buffer/common/texture_in_use_response.h" | 19 #include "gpu/command_buffer/common/texture_in_use_response.h" |
20 #include "ui/gfx/color_space.h" | 20 #include "ui/gfx/color_space.h" |
21 | 21 |
22 namespace ui { | |
23 class LatencyInfo; | |
24 } | |
25 | |
26 namespace gfx { | |
27 class ColorSpace; | |
28 class Rect; | |
29 class Size; | |
30 class Transform; | |
31 } | |
32 | |
33 namespace gpu { | 22 namespace gpu { |
34 class GpuMemoryBufferManager; | 23 class GpuMemoryBufferManager; |
35 } | 24 } |
36 | 25 |
37 namespace cc { | 26 namespace cc { |
38 | 27 |
39 class CompositorFrame; | 28 class CompositorFrame; |
40 struct ManagedMemoryPolicy; | |
41 class CompositorFrameSinkClient; | 29 class CompositorFrameSinkClient; |
42 class SharedBitmapManager; | 30 class SharedBitmapManager; |
43 | 31 |
44 // An interface for submitting CompositorFrames to a display compositor | 32 // An interface for submitting CompositorFrames to a display compositor |
45 // which will compose frames from multiple CompositorFrameSinks to show | 33 // which will compose frames from multiple CompositorFrameSinks to show |
46 // on screen to the user. | 34 // on screen to the user. |
47 // If a context_provider() is present, frames should be submitted with | 35 // If a context_provider() is present, frames should be submitted with |
48 // OpenGL resources (created with the context_provider()). If not, then | 36 // OpenGL resources (created with the context_provider()). If not, then |
49 // SharedBitmap resources should be used. | 37 // SharedBitmap resources should be used. |
50 class CC_EXPORT CompositorFrameSink { | 38 class CC_EXPORT CompositorFrameSink { |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 SharedBitmapManager* shared_bitmap_manager_; | 131 SharedBitmapManager* shared_bitmap_manager_; |
144 base::ThreadChecker client_thread_checker_; | 132 base::ThreadChecker client_thread_checker_; |
145 | 133 |
146 private: | 134 private: |
147 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); | 135 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); |
148 }; | 136 }; |
149 | 137 |
150 } // namespace cc | 138 } // namespace cc |
151 | 139 |
152 #endif // CC_OUTPUT_COMPOSITOR_FRAME_SINK_H_ | 140 #endif // CC_OUTPUT_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |