OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 CONTENT_BROWSER_COMPOSITOR_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| 7 |
| 8 #include "cc/output/output_surface.h" |
| 9 |
| 10 namespace cc { |
| 11 class Display; |
| 12 class SurfaceManager; |
| 13 } |
| 14 |
| 15 namespace content { |
| 16 |
| 17 // This class is maps a compositor OutputSurface to the surface system's Display |
| 18 // concept, allowing a compositor client to submit frames for a native root |
| 19 // window or physical display. |
| 20 class SurfaceDisplayOutputSurface : public cc::OutputSurface { |
| 21 public: |
| 22 // The underlying cc::Display and cc::SurfaceManager must outlive this class. |
| 23 SurfaceDisplayOutputSurface( |
| 24 cc::Display* display, |
| 25 cc::SurfaceManager* surface_manager, |
| 26 const scoped_refptr<cc::ContextProvider>& context_provider, |
| 27 scoped_ptr<cc::SoftwareOutputDevice> software_device); |
| 28 virtual ~SurfaceDisplayOutputSurface(); |
| 29 |
| 30 // cc::OutputSurface implementation. |
| 31 virtual void SwapBuffers(cc::CompositorFrame* frame) OVERRIDE; |
| 32 |
| 33 private: |
| 34 cc::Display* display_; |
| 35 cc::SurfaceManager* surface_manager_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); |
| 38 }; |
| 39 |
| 40 } // namespace content |
| 41 |
| 42 #endif // CONTENT_BROWSER_COMPOSITOR_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
OLD | NEW |