| 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 #include "ui/android/delegated_frame_host_android.h" | 5 #include "ui/android/delegated_frame_host_android.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "cc/layers/solid_color_layer.h" | 10 #include "cc/layers/solid_color_layer.h" |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 if (!ack.has_damage) | 186 if (!ack.has_damage) |
| 187 support_->BeginFrameDidNotSwap(ack); | 187 support_->BeginFrameDidNotSwap(ack); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void DelegatedFrameHostAndroid::CreateNewCompositorFrameSinkSupport() { | 190 void DelegatedFrameHostAndroid::CreateNewCompositorFrameSinkSupport() { |
| 191 support_.reset(); | 191 support_.reset(); |
| 192 support_ = base::MakeUnique<cc::CompositorFrameSinkSupport>( | 192 support_ = base::MakeUnique<cc::CompositorFrameSinkSupport>( |
| 193 this, surface_manager_, frame_sink_id_, false /* is_root */, | 193 this, surface_manager_, frame_sink_id_, false /* is_root */, |
| 194 false /* handles_frame_sink_id_invalidation */, | 194 false /* handles_frame_sink_id_invalidation */, |
| 195 true /* needs_sync_points */); | 195 true /* needs_sync_points */); |
| 196 support_->Init(); |
| 196 } | 197 } |
| 197 | 198 |
| 198 cc::SurfaceId DelegatedFrameHostAndroid::SurfaceId() const { | 199 cc::SurfaceId DelegatedFrameHostAndroid::SurfaceId() const { |
| 199 return surface_info_.id(); | 200 return surface_info_.id(); |
| 200 } | 201 } |
| 201 | 202 |
| 202 } // namespace ui | 203 } // namespace ui |
| OLD | NEW |