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