OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
6 #define CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 6 #define CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
16 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "cc/output/begin_frame_args.h" | 20 #include "cc/output/begin_frame_args.h" |
21 #include "cc/output/compositor_frame_sink.h" | 21 #include "cc/output/compositor_frame_sink.h" |
22 #include "cc/scheduler/begin_frame_source.h" | 22 #include "cc/scheduler/begin_frame_source.h" |
| 23 #include "cc/surfaces/local_surface_id.h" |
| 24 #include "cc/surfaces/local_surface_id_allocator.h" |
23 #include "content/renderer/gpu/compositor_forwarding_message_filter.h" | 25 #include "content/renderer/gpu/compositor_forwarding_message_filter.h" |
24 #include "ipc/ipc_sync_message_filter.h" | 26 #include "ipc/ipc_sync_message_filter.h" |
25 | 27 |
26 namespace IPC { | 28 namespace IPC { |
27 class Message; | 29 class Message; |
28 } | 30 } |
29 | 31 |
30 namespace cc { | 32 namespace cc { |
31 class BeginFrameSource; | 33 class BeginFrameSource; |
32 class CompositorFrame; | 34 class CompositorFrame; |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 | 98 |
97 scoped_refptr<CompositorForwardingMessageFilter> | 99 scoped_refptr<CompositorForwardingMessageFilter> |
98 compositor_frame_sink_filter_; | 100 compositor_frame_sink_filter_; |
99 CompositorForwardingMessageFilter::Handler | 101 CompositorForwardingMessageFilter::Handler |
100 compositor_frame_sink_filter_handler_; | 102 compositor_frame_sink_filter_handler_; |
101 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; | 103 scoped_refptr<RendererCompositorFrameSinkProxy> compositor_frame_sink_proxy_; |
102 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 104 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
103 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 105 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
104 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; | 106 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; |
105 int routing_id_; | 107 int routing_id_; |
| 108 |
| 109 cc::LocalSurfaceId local_surface_id_; |
| 110 cc::LocalSurfaceIdAllocator id_allocator_; |
| 111 gfx::Size last_frame_size_; |
| 112 float last_device_scale_factor_; |
| 113 |
106 base::ThreadChecker thread_checker_; | 114 base::ThreadChecker thread_checker_; |
107 }; | 115 }; |
108 | 116 |
109 } // namespace content | 117 } // namespace content |
110 | 118 |
111 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ | 119 #endif // CONTENT_RENDERER_GPU_RENDERER_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |