| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 5 #ifndef CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| 6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 6 #define CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/thread_checker.h" | 9 #include "base/threading/thread_checker.h" |
| 10 #include "cc/output/output_surface.h" | 10 #include "cc/output/output_surface.h" |
| 11 #include "cc/surfaces/display_client.h" | 11 #include "cc/surfaces/display_client.h" |
| 12 #include "cc/surfaces/surface_factory.h" | 12 #include "cc/surfaces/surface_factory.h" |
| 13 #include "cc/surfaces/surface_factory_client.h" | 13 #include "cc/surfaces/surface_factory_client.h" |
| 14 #include "cc/surfaces/surfaces_export.h" | 14 #include "cc/surfaces/surfaces_export.h" |
| 15 | 15 |
| 16 namespace cc { | 16 namespace cc { |
| 17 class Display; | 17 class Display; |
| 18 class OnscreenDisplayClient; | |
| 19 class SurfaceIdAllocator; | 18 class SurfaceIdAllocator; |
| 20 class SurfaceManager; | 19 class SurfaceManager; |
| 21 | 20 |
| 22 // This class is maps a compositor OutputSurface to the surface system's Display | 21 // This class is maps a compositor OutputSurface to the surface system's Display |
| 23 // concept, allowing a compositor client to submit frames for a native root | 22 // concept, allowing a compositor client to submit frames for a native root |
| 24 // window or physical display. | 23 // window or physical display. |
| 25 class CC_SURFACES_EXPORT SurfaceDisplayOutputSurface | 24 class CC_SURFACES_EXPORT SurfaceDisplayOutputSurface |
| 26 : public OutputSurface, | 25 : public OutputSurface, |
| 27 public SurfaceFactoryClient, | 26 public SurfaceFactoryClient, |
| 28 public NON_EXPORTED_BASE(DisplayClient) { | 27 public NON_EXPORTED_BASE(DisplayClient) { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 SurfaceId delegated_surface_id_; | 67 SurfaceId delegated_surface_id_; |
| 69 gfx::Size last_swap_frame_size_; | 68 gfx::Size last_swap_frame_size_; |
| 70 bool output_surface_lost_ = false; | 69 bool output_surface_lost_ = false; |
| 71 | 70 |
| 72 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); | 71 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 } // namespace cc | 74 } // namespace cc |
| 76 | 75 |
| 77 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 76 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
| OLD | NEW |