| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ | 5 #ifndef SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ |
| 6 #define SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ | 6 #define SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ |
| 7 | 7 |
| 8 #include "cc/surfaces/display_client.h" | 8 #include "cc/surfaces/display_client.h" |
| 9 #include "cc/surfaces/surface.h" | 9 #include "cc/surfaces/surface.h" |
| 10 #include "cc/surfaces/surface_factory.h" | 10 #include "cc/surfaces/surface_factory.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // make up the ID. | 53 // make up the ID. |
| 54 | 54 |
| 55 private: | 55 private: |
| 56 // SurfaceFactoryClient implementation. | 56 // SurfaceFactoryClient implementation. |
| 57 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 57 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
| 58 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 58 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
| 59 | 59 |
| 60 // DisplayClient implementation. | 60 // DisplayClient implementation. |
| 61 void DisplayOutputSurfaceLost() override; | 61 void DisplayOutputSurfaceLost() override; |
| 62 void DisplaySetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; | 62 void DisplaySetMemoryPolicy(const cc::ManagedMemoryPolicy& policy) override; |
| 63 void DisplayWillDrawAndSwap(bool will_draw_and_swap, | |
| 64 const cc::RenderPassList& render_passes) override; | |
| 65 void DisplayDidDrawAndSwap() override; | |
| 66 | 63 |
| 67 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 64 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 68 scoped_refptr<SurfacesState> surfaces_state_; | 65 scoped_refptr<SurfacesState> surfaces_state_; |
| 69 cc::SurfaceFactory factory_; | 66 cc::SurfaceFactory factory_; |
| 70 cc::SurfaceIdAllocator allocator_; | 67 cc::SurfaceIdAllocator allocator_; |
| 71 cc::SurfaceId surface_id_; | 68 cc::SurfaceId surface_id_; |
| 72 | 69 |
| 73 gfx::Size display_size_; | 70 gfx::Size display_size_; |
| 74 std::unique_ptr<cc::Display> display_; | 71 std::unique_ptr<cc::Display> display_; |
| 75 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor); | 72 DISALLOW_COPY_AND_ASSIGN(DisplayCompositor); |
| 76 }; | 73 }; |
| 77 | 74 |
| 78 } // namespace ui | 75 } // namespace ui |
| 79 | 76 |
| 80 #endif // SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ | 77 #endif // SERVICES_UI_SURFACES_DISPLAY_COMPOSITOR_H_ |
| OLD | NEW |