| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 friend class base::RefCountedThreadSafe<CompositorOutputSurfaceProxy>; | 85 friend class base::RefCountedThreadSafe<CompositorOutputSurfaceProxy>; |
| 86 ~CompositorOutputSurfaceProxy() {} | 86 ~CompositorOutputSurfaceProxy() {} |
| 87 CompositorOutputSurface* output_surface_; | 87 CompositorOutputSurface* output_surface_; |
| 88 | 88 |
| 89 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy); | 89 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy); |
| 90 }; | 90 }; |
| 91 | 91 |
| 92 void OnMessageReceived(const IPC::Message& message); | 92 void OnMessageReceived(const IPC::Message& message); |
| 93 void OnUpdateVSyncParametersFromBrowser(base::TimeTicks timebase, | 93 void OnUpdateVSyncParameters( |
| 94 base::TimeDelta interval); | 94 base::TimeTicks timebase, base::TimeDelta interval); |
| 95 #if defined(OS_ANDROID) | 95 #if defined(OS_ANDROID) |
| 96 void OnBeginImplFrame(const cc::BeginFrameArgs& args); | 96 void OnBeginImplFrame(const cc::BeginFrameArgs& args); |
| 97 #endif | 97 #endif |
| 98 bool Send(IPC::Message* message); | 98 bool Send(IPC::Message* message); |
| 99 | 99 |
| 100 bool use_swap_compositor_frame_message_; | 100 bool use_swap_compositor_frame_message_; |
| 101 | 101 |
| 102 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; | 102 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; |
| 103 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 103 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
| 104 scoped_refptr<IPC::SyncMessageFilter> message_sender_; | 104 scoped_refptr<IPC::SyncMessageFilter> message_sender_; |
| 105 int routing_id_; | 105 int routing_id_; |
| 106 bool prefers_smoothness_; | 106 bool prefers_smoothness_; |
| 107 base::PlatformThreadHandle main_thread_handle_; | 107 base::PlatformThreadHandle main_thread_handle_; |
| 108 }; | 108 }; |
| 109 | 109 |
| 110 } // namespace content | 110 } // namespace content |
| 111 | 111 |
| 112 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 112 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |