OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_OUTPUT_SURFACE_IMPL_H_ |
| 6 #define CC_OUTPUT_SURFACE_IMPL_H_ |
| 7 |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "cc/cc_export.h" |
| 10 #include "cc/output_surface.h" |
| 11 #include "cc/software_output_device.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3
D.h" |
| 13 |
| 14 namespace cc { |
| 15 |
| 16 class CC_EXPORT OutputSurfaceImpl : public OutputSurface { |
| 17 public: |
| 18 explicit OutputSurfaceImpl( |
| 19 scoped_ptr<WebKit::WebGraphicsContext3D> context3d); |
| 20 |
| 21 explicit OutputSurfaceImpl( |
| 22 scoped_ptr<cc::SoftwareOutputDevice> software_device); |
| 23 |
| 24 OutputSurfaceImpl( |
| 25 scoped_ptr<WebKit::WebGraphicsContext3D> context3d, |
| 26 scoped_ptr<cc::SoftwareOutputDevice> software_device); |
| 27 |
| 28 virtual ~OutputSurfaceImpl(); |
| 29 |
| 30 virtual bool BindToClient(cc::OutputSurfaceClient*) OVERRIDE; |
| 31 |
| 32 virtual const struct Capabilities& Capabilities() const OVERRIDE; |
| 33 |
| 34 virtual WebKit::WebGraphicsContext3D* Context3D() const OVERRIDE; |
| 35 virtual cc::SoftwareOutputDevice* SoftwareDevice() const OVERRIDE; |
| 36 |
| 37 virtual void SendFrameToParentCompositor(cc::CompositorFrame*) OVERRIDE; |
| 38 |
| 39 protected: |
| 40 OutputSurfaceClient* client_; |
| 41 struct cc::OutputSurface::Capabilities capabilities_; |
| 42 scoped_ptr<WebKit::WebGraphicsContext3D> context3d_; |
| 43 scoped_ptr<cc::SoftwareOutputDevice> software_device_; |
| 44 }; |
| 45 |
| 46 } // namespace cc |
| 47 |
| 48 #endif // CC_OUTPUT_SURFACE_IMPL_H_ |
OLD | NEW |