| 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 "android_webview/browser/surfaces_instance.h" | 5 #include "android_webview/browser/surfaces_instance.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "android_webview/browser/aw_gl_surface.h" | 10 #include "android_webview/browser/aw_gl_surface.h" |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void SurfacesInstance::SetEmptyRootFrame() { | 161 void SurfacesInstance::SetEmptyRootFrame() { |
| 162 cc::CompositorFrame empty_frame; | 162 cc::CompositorFrame empty_frame; |
| 163 empty_frame.metadata.referenced_surfaces = child_ids_; | 163 empty_frame.metadata.referenced_surfaces = child_ids_; |
| 164 support_->SubmitCompositorFrame(root_id_, std::move(empty_frame)); | 164 support_->SubmitCompositorFrame(root_id_, std::move(empty_frame)); |
| 165 } | 165 } |
| 166 | 166 |
| 167 void SurfacesInstance::DidReceiveCompositorFrameAck() {} | 167 void SurfacesInstance::DidReceiveCompositorFrameAck() {} |
| 168 | 168 |
| 169 void SurfacesInstance::OnBeginFrame(const cc::BeginFrameArgs& args) {} | 169 void SurfacesInstance::OnBeginFrame(const cc::BeginFrameArgs& args) {} |
| 170 | 170 |
| 171 void SurfacesInstance::WillDrawSurface() {} | 171 void SurfacesInstance::WillDrawSurface( |
| 172 const cc::LocalSurfaceId& local_surface_id, |
| 173 const gfx::Rect& damage_rect) {} |
| 172 | 174 |
| 173 void SurfacesInstance::ReclaimResources( | 175 void SurfacesInstance::ReclaimResources( |
| 174 const cc::ReturnedResourceArray& resources) { | 176 const cc::ReturnedResourceArray& resources) { |
| 175 // Root surface should have no resources to return. | 177 // Root surface should have no resources to return. |
| 176 CHECK(resources.empty()); | 178 CHECK(resources.empty()); |
| 177 } | 179 } |
| 178 | 180 |
| 179 } // namespace android_webview | 181 } // namespace android_webview |
| OLD | NEW |