| 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 #include "components/mus/surfaces/direct_output_surface.h" | 5 #include "components/mus/surfaces/direct_output_surface.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
| 9 #include "cc/output/context_provider.h" | 11 #include "cc/output/context_provider.h" |
| 10 #include "cc/output/output_surface_client.h" | 12 #include "cc/output/output_surface_client.h" |
| 11 #include "gpu/command_buffer/client/context_support.h" | 13 #include "gpu/command_buffer/client/context_support.h" |
| 12 #include "gpu/command_buffer/client/gles2_interface.h" | 14 #include "gpu/command_buffer/client/gles2_interface.h" |
| 13 | 15 |
| 14 namespace mus { | 16 namespace mus { |
| 15 | 17 |
| 16 DirectOutputSurface::DirectOutputSurface( | 18 DirectOutputSurface::DirectOutputSurface( |
| (...skipping 14 matching lines...) Expand all Loading... |
| 31 } | 33 } |
| 32 uint32_t sync_point = | 34 uint32_t sync_point = |
| 33 context_provider_->ContextGL()->InsertSyncPointCHROMIUM(); | 35 context_provider_->ContextGL()->InsertSyncPointCHROMIUM(); |
| 34 context_provider_->ContextSupport()->SignalSyncPoint( | 36 context_provider_->ContextSupport()->SignalSyncPoint( |
| 35 sync_point, base::Bind(&OutputSurface::OnSwapBuffersComplete, | 37 sync_point, base::Bind(&OutputSurface::OnSwapBuffersComplete, |
| 36 weak_ptr_factory_.GetWeakPtr())); | 38 weak_ptr_factory_.GetWeakPtr())); |
| 37 client_->DidSwapBuffers(); | 39 client_->DidSwapBuffers(); |
| 38 } | 40 } |
| 39 | 41 |
| 40 } // namespace mus | 42 } // namespace mus |
| OLD | NEW |