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" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 | 58 |
59 private: | 59 private: |
60 void SwapBuffersComplete(SurfaceDrawStatus drawn); | 60 void SwapBuffersComplete(SurfaceDrawStatus drawn); |
61 | 61 |
62 // This class is only meant to be used on a single thread. | 62 // This class is only meant to be used on a single thread. |
63 base::ThreadChecker thread_checker_; | 63 base::ThreadChecker thread_checker_; |
64 | 64 |
65 SurfaceManager* surface_manager_; | 65 SurfaceManager* surface_manager_; |
66 SurfaceIdAllocator* surface_id_allocator_; | 66 SurfaceIdAllocator* surface_id_allocator_; |
67 Display* display_; | 67 Display* display_; |
68 SurfaceFactory factory_; | 68 std::unique_ptr<SurfaceFactory> factory_; |
69 SurfaceId delegated_surface_id_; | 69 SurfaceId delegated_surface_id_; |
70 gfx::Size last_swap_frame_size_; | 70 gfx::Size last_swap_frame_size_; |
71 bool output_surface_lost_ = false; | 71 bool output_surface_lost_ = false; |
72 | 72 |
73 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); | 73 DISALLOW_COPY_AND_ASSIGN(SurfaceDisplayOutputSurface); |
74 }; | 74 }; |
75 | 75 |
76 } // namespace cc | 76 } // namespace cc |
77 | 77 |
78 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ | 78 #endif // CC_SURFACES_SURFACE_DISPLAY_OUTPUT_SURFACE_H_ |
OLD | NEW |