| 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 COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ | 5 #ifndef COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ |
| 6 #define COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ | 6 #define COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool BindToClient(cc::OutputSurfaceClient* client) override; | 61 bool BindToClient(cc::OutputSurfaceClient* client) override; |
| 62 | 62 |
| 63 // Taken from BrowserCompositor specific API. | 63 // Taken from BrowserCompositor specific API. |
| 64 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase, | 64 void OnUpdateVSyncParametersFromGpu(base::TimeTicks timebase, |
| 65 base::TimeDelta interval); | 65 base::TimeDelta interval); |
| 66 | 66 |
| 67 // Called when a swap completion is sent from the GPU process. | 67 // Called when a swap completion is sent from the GPU process. |
| 68 void OnGpuSwapBuffersCompleted(gfx::SwapResult result); | 68 void OnGpuSwapBuffersCompleted(gfx::SwapResult result); |
| 69 | 69 |
| 70 display_compositor::GLHelper gl_helper_; | 70 display_compositor::GLHelper gl_helper_; |
| 71 OzoneGpuMemoryBufferManager gpu_memory_buffer_manager_; | 71 std::unique_ptr<OzoneGpuMemoryBufferManager> ozone_gpu_memory_buffer_manager_; |
| 72 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_; | 72 std::unique_ptr<display_compositor::BufferQueue> buffer_queue_; |
| 73 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_; | 73 std::unique_ptr<cc::SyntheticBeginFrameSource> synthetic_begin_frame_source_; |
| 74 | 74 |
| 75 base::WeakPtrFactory<DirectOutputSurfaceOzone> weak_ptr_factory_; | 75 base::WeakPtrFactory<DirectOutputSurfaceOzone> weak_ptr_factory_; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace mus | 78 } // namespace mus |
| 79 | 79 |
| 80 #endif // COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ | 80 #endif // COMPONENTS_MUS_SURFACES_DIRECT_OUTPUT_SURFACE_OZONE_H_ |
| OLD | NEW |