| 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 "android_webview/browser/hardware_renderer.h" | 5 #include "android_webview/browser/hardware_renderer.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "android_webview/browser/aw_gl_surface.h" | 9 #include "android_webview/browser/aw_gl_surface.h" |
| 10 #include "android_webview/browser/aw_render_thread_context_provider.h" | 10 #include "android_webview/browser/aw_render_thread_context_provider.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 const cc::ReturnedResourceArray& resources, | 249 const cc::ReturnedResourceArray& resources, |
| 250 const CompositorID& compositor_id, | 250 const CompositorID& compositor_id, |
| 251 uint32_t compositor_frame_sink_id) { | 251 uint32_t compositor_frame_sink_id) { |
| 252 if (compositor_frame_sink_id != last_committed_compositor_frame_sink_id_) | 252 if (compositor_frame_sink_id != last_committed_compositor_frame_sink_id_) |
| 253 return; | 253 return; |
| 254 render_thread_manager_->InsertReturnedResourcesOnRT(resources, compositor_id, | 254 render_thread_manager_->InsertReturnedResourcesOnRT(resources, compositor_id, |
| 255 compositor_frame_sink_id); | 255 compositor_frame_sink_id); |
| 256 } | 256 } |
| 257 | 257 |
| 258 void HardwareRenderer::CreateNewCompositorFrameSinkSupport() { | 258 void HardwareRenderer::CreateNewCompositorFrameSinkSupport() { |
| 259 constexpr bool is_root = false; |
| 260 constexpr bool handles_frame_sink_id_invalidation = false; |
| 261 constexpr bool needs_sync_points = true; |
| 259 support_.reset(); | 262 support_.reset(); |
| 260 support_ = base::MakeUnique<cc::CompositorFrameSinkSupport>( | 263 support_ = cc::CompositorFrameSinkSupport::Create( |
| 261 this, surfaces_->GetSurfaceManager(), frame_sink_id_, false /* is_root */, | 264 this, surfaces_->GetSurfaceManager(), frame_sink_id_, is_root, |
| 262 false /* handles_frame_sink_id_invalidation */, | 265 handles_frame_sink_id_invalidation, needs_sync_points); |
| 263 true /* needs_sync_points */); | |
| 264 } | 266 } |
| 265 | 267 |
| 266 } // namespace android_webview | 268 } // namespace android_webview |
| OLD | NEW |