| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 friend class base::RefCountedThreadSafe<CompositorOutputSurfaceProxy>; | 64 friend class base::RefCountedThreadSafe<CompositorOutputSurfaceProxy>; |
| 65 ~CompositorOutputSurfaceProxy() {} | 65 ~CompositorOutputSurfaceProxy() {} |
| 66 CompositorOutputSurface* output_surface_; | 66 CompositorOutputSurface* output_surface_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy); | 68 DISALLOW_COPY_AND_ASSIGN(CompositorOutputSurfaceProxy); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 void OnMessageReceived(const IPC::Message& message); | 71 void OnMessageReceived(const IPC::Message& message); |
| 72 void OnUpdateVSyncParameters( | 72 void OnUpdateVSyncParameters( |
| 73 base::TimeTicks timebase, base::TimeDelta interval); | 73 base::TimeTicks timebase, base::TimeDelta interval); |
| 74 bool Send(IPC::Message* message); |
| 74 | 75 |
| 75 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; | 76 scoped_refptr<IPC::ForwardingMessageFilter> output_surface_filter_; |
| 76 cc::OutputSurfaceClient* client_; | 77 cc::OutputSurfaceClient* client_; |
| 77 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 78 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
| 78 int routing_id_; | 79 int routing_id_; |
| 79 struct Capabilities capabilities_; | 80 struct Capabilities capabilities_; |
| 80 scoped_ptr<WebKit::WebGraphicsContext3D> context3D_; | 81 scoped_ptr<WebKit::WebGraphicsContext3D> context3D_; |
| 81 scoped_ptr<cc::SoftwareOutputDevice> software_device_; | 82 scoped_ptr<cc::SoftwareOutputDevice> software_device_; |
| 82 }; | 83 }; |
| 83 | 84 |
| 84 } // namespace content | 85 } // namespace content |
| 85 | 86 |
| 86 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 87 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |