| 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 26 matching lines...) Expand all Loading... |
| 37 CompositorOutputSurface(int32 routing_id, | 37 CompositorOutputSurface(int32 routing_id, |
| 38 WebKit::WebGraphicsContext3D* context3d, | 38 WebKit::WebGraphicsContext3D* context3d, |
| 39 cc::SoftwareOutputDevice* software); | 39 cc::SoftwareOutputDevice* software); |
| 40 virtual ~CompositorOutputSurface(); | 40 virtual ~CompositorOutputSurface(); |
| 41 | 41 |
| 42 // cc::OutputSurface implementation. | 42 // cc::OutputSurface implementation. |
| 43 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; | 43 virtual bool BindToClient(cc::OutputSurfaceClient* client) OVERRIDE; |
| 44 virtual const struct Capabilities& Capabilities() const OVERRIDE; | 44 virtual const struct Capabilities& Capabilities() const OVERRIDE; |
| 45 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE; | 45 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE; |
| 46 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE; | 46 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE; |
| 47 virtual void SendFrameToParentCompositor( | 47 virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE; |
| 48 const cc::CompositorFrame&) OVERRIDE; | |
| 49 | 48 |
| 50 private: | 49 private: |
| 51 class CompositorOutputSurfaceProxy : | 50 class CompositorOutputSurfaceProxy : |
| 52 public base::RefCountedThreadSafe<CompositorOutputSurfaceProxy> { | 51 public base::RefCountedThreadSafe<CompositorOutputSurfaceProxy> { |
| 53 public: | 52 public: |
| 54 explicit CompositorOutputSurfaceProxy( | 53 explicit CompositorOutputSurfaceProxy( |
| 55 CompositorOutputSurface* output_surface) | 54 CompositorOutputSurface* output_surface) |
| 56 : output_surface_(output_surface) {} | 55 : output_surface_(output_surface) {} |
| 57 void ClearOutputSurface() { output_surface_ = NULL; } | 56 void ClearOutputSurface() { output_surface_ = NULL; } |
| 58 void OnMessageReceived(const IPC::Message& message) { | 57 void OnMessageReceived(const IPC::Message& message) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 78 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; | 77 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; |
| 79 int routing_id_; | 78 int routing_id_; |
| 80 struct Capabilities capabilities_; | 79 struct Capabilities capabilities_; |
| 81 scoped_ptr<WebKit::WebGraphicsContext3D> context3D_; | 80 scoped_ptr<WebKit::WebGraphicsContext3D> context3D_; |
| 82 scoped_ptr<cc::SoftwareOutputDevice> software_device_; | 81 scoped_ptr<cc::SoftwareOutputDevice> software_device_; |
| 83 }; | 82 }; |
| 84 | 83 |
| 85 } // namespace content | 84 } // namespace content |
| 86 | 85 |
| 87 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ | 86 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ |
| OLD | NEW |