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_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 bool Send(IPC::Message* message); | 95 bool Send(IPC::Message* message); |
96 | 96 |
97 bool use_swap_compositor_frame_message_; | 97 bool use_swap_compositor_frame_message_; |
98 | 98 |
99 scoped_refptr<CompositorForwardingMessageFilter> output_surface_filter_; | 99 scoped_refptr<CompositorForwardingMessageFilter> output_surface_filter_; |
100 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_; | 100 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_; |
101 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 101 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
102 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 102 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
103 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; | 103 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; |
104 int routing_id_; | 104 int routing_id_; |
| 105 #if defined(OS_ANDROID) |
105 bool prefers_smoothness_; | 106 bool prefers_smoothness_; |
106 base::PlatformThreadHandle main_thread_handle_; | 107 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner_; |
| 108 #endif |
107 | 109 |
108 // TODO(danakj): Remove this when crbug.com/311404 | 110 // TODO(danakj): Remove this when crbug.com/311404 |
109 bool layout_test_mode_; | 111 bool layout_test_mode_; |
110 scoped_ptr<cc::CompositorFrameAck> layout_test_previous_frame_ack_; | 112 scoped_ptr<cc::CompositorFrameAck> layout_test_previous_frame_ack_; |
111 base::WeakPtrFactory<CompositorOutputSurface> weak_ptrs_; | 113 base::WeakPtrFactory<CompositorOutputSurface> weak_ptrs_; |
112 }; | 114 }; |
113 | 115 |
114 } // namespace content | 116 } // namespace content |
115 | 117 |
116 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 118 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |