| 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_DIRECT_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ | 6 #define CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_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/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 const RenderPassList& render_passes) override; | 59 const RenderPassList& render_passes) override; |
| 60 void DisplayDidDrawAndSwap() override; | 60 void DisplayDidDrawAndSwap() override; |
| 61 | 61 |
| 62 private: | 62 private: |
| 63 void DidDrawCallback(); | 63 void DidDrawCallback(); |
| 64 | 64 |
| 65 // This class is only meant to be used on a single thread. | 65 // This class is only meant to be used on a single thread. |
| 66 base::ThreadChecker thread_checker_; | 66 base::ThreadChecker thread_checker_; |
| 67 | 67 |
| 68 const FrameSinkId frame_sink_id_; | 68 const FrameSinkId frame_sink_id_; |
| 69 LocalFrameId delegated_local_frame_id_; | 69 LocalSurfaceId delegated_local_surface_id_; |
| 70 SurfaceManager* surface_manager_; | 70 SurfaceManager* surface_manager_; |
| 71 SurfaceIdAllocator surface_id_allocator_; | 71 SurfaceIdAllocator surface_id_allocator_; |
| 72 Display* display_; | 72 Display* display_; |
| 73 SurfaceFactory factory_; | 73 SurfaceFactory factory_; |
| 74 gfx::Size last_swap_frame_size_; | 74 gfx::Size last_swap_frame_size_; |
| 75 bool is_lost_ = false; | 75 bool is_lost_ = false; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); | 77 DISALLOW_COPY_AND_ASSIGN(DirectCompositorFrameSink); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace cc | 80 } // namespace cc |
| 81 | 81 |
| 82 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ | 82 #endif // CC_SURFACES_DIRECT_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |