| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_GPU_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/memory/weak_ptr.h" |
| 13 #include "cc/ipc/compositor_frame.mojom.h" | 14 #include "cc/ipc/compositor_frame.mojom.h" |
| 14 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" | 15 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" |
| 15 #include "cc/output/context_provider.h" | 16 #include "cc/output/context_provider.h" |
| 16 #include "cc/output/in_process_context_provider.h" | 17 #include "cc/output/in_process_context_provider.h" |
| 17 #include "cc/scheduler/begin_frame_source.h" | 18 #include "cc/scheduler/begin_frame_source.h" |
| 18 #include "cc/surfaces/display.h" | 19 #include "cc/surfaces/display.h" |
| 19 #include "cc/surfaces/display_client.h" | 20 #include "cc/surfaces/display_client.h" |
| 20 #include "cc/surfaces/frame_sink_id.h" | 21 #include "cc/surfaces/frame_sink_id.h" |
| 21 #include "cc/surfaces/surface_factory.h" | 22 #include "cc/surfaces/surface_factory.h" |
| 22 #include "cc/surfaces/surface_factory_client.h" | 23 #include "cc/surfaces/surface_factory_client.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // Whether a request for begin frames has been issued. | 123 // Whether a request for begin frames has been issued. |
| 123 bool needs_begin_frame_ = false; | 124 bool needs_begin_frame_ = false; |
| 124 | 125 |
| 125 // Whether or not a frame observer has been added. | 126 // Whether or not a frame observer has been added. |
| 126 bool added_frame_observer_ = false; | 127 bool added_frame_observer_ = false; |
| 127 | 128 |
| 128 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 129 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
| 129 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; | 130 mojo::Binding<cc::mojom::MojoCompositorFrameSink> binding_; |
| 130 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_; | 131 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_; |
| 131 | 132 |
| 133 base::WeakPtrFactory<GpuCompositorFrameSink> weak_factory_; |
| 134 |
| 132 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 135 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
| 133 }; | 136 }; |
| 134 | 137 |
| 135 } // namespace ui | 138 } // namespace ui |
| 136 | 139 |
| 137 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 140 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |