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" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/threading/non_thread_safe.h" | 12 #include "base/threading/non_thread_safe.h" |
13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
14 #include "base/time.h" | 14 #include "base/time.h" |
15 #include "cc/output/output_surface.h" | 15 #include "cc/output/output_surface.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class TaskRunner; | 18 class TaskRunner; |
19 } | 19 } |
20 | 20 |
21 namespace IPC { | 21 namespace IPC { |
22 class ForwardingMessageFilter; | 22 class ForwardingMessageFilter; |
23 class Message; | 23 class Message; |
24 } | 24 } |
25 | 25 |
26 namespace cc { | 26 namespace cc { |
| 27 class CompositorFrame; |
27 class CompositorFrameAck; | 28 class CompositorFrameAck; |
28 } | 29 } |
29 | 30 |
30 namespace content { | 31 namespace content { |
31 | 32 |
32 // This class can be created only on the main thread, but then becomes pinned | 33 // This class can be created only on the main thread, but then becomes pinned |
33 // to a fixed thread when bindToClient is called. | 34 // to a fixed thread when bindToClient is called. |
34 class CompositorOutputSurface | 35 class CompositorOutputSurface |
35 : NON_EXPORTED_BASE(public cc::OutputSurface), | 36 : NON_EXPORTED_BASE(public cc::OutputSurface), |
36 NON_EXPORTED_BASE(public base::NonThreadSafe) { | 37 NON_EXPORTED_BASE(public base::NonThreadSafe) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; | 84 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; |
84 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 85 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
85 int routing_id_; | 86 int routing_id_; |
86 bool prefers_smoothness_; | 87 bool prefers_smoothness_; |
87 base::PlatformThreadId main_thread_id_; | 88 base::PlatformThreadId main_thread_id_; |
88 }; | 89 }; |
89 | 90 |
90 } // namespace content | 91 } // namespace content |
91 | 92 |
92 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 93 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |