| 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 #include "content/browser/compositor/offscreen_browser_compositor_output_surface
.h" | 5 #include "content/browser/compositor/offscreen_browser_compositor_output_surface
.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 | 186 |
| 187 void OffscreenBrowserCompositorOutputSurface::OnReflectorChanged() { | 187 void OffscreenBrowserCompositorOutputSurface::OnReflectorChanged() { |
| 188 if (reflector_) { | 188 if (reflector_) { |
| 189 reflector_changed_ = true; | 189 reflector_changed_ = true; |
| 190 EnsureBackbuffer(); | 190 EnsureBackbuffer(); |
| 191 } | 191 } |
| 192 } | 192 } |
| 193 | 193 |
| 194 void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete( | 194 void OffscreenBrowserCompositorOutputSurface::OnSwapBuffersComplete( |
| 195 const std::vector<ui::LatencyInfo>& latency_info) { | 195 const std::vector<ui::LatencyInfo>& latency_info) { |
| 196 RenderWidgetHostImpl::CompositorFrameDrawn(latency_info); | 196 RenderWidgetHostImpl::OnGpuSwapBuffersCompleted(latency_info); |
| 197 client_->DidReceiveSwapBuffersAck(); | 197 client_->DidReceiveSwapBuffersAck(); |
| 198 } | 198 } |
| 199 | 199 |
| 200 } // namespace content | 200 } // namespace content |
| OLD | NEW |