Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(155)

Side by Side Diff: android_webview/browser/surfaces_instance.cc

Issue 2443003004: cc: Make OutputSurface::BindToClient pure virtual and not return bool (Closed)
Patch Set: bindtoclient-pure-virtual: rebase Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 DCHECK_EQ(g_surfaces_instance, this); 85 DCHECK_EQ(g_surfaces_instance, this);
86 g_surfaces_instance = nullptr; 86 g_surfaces_instance = nullptr;
87 87
88 DCHECK(child_ids_.empty()); 88 DCHECK(child_ids_.empty());
89 if (!root_id_.is_null()) 89 if (!root_id_.is_null())
90 surface_factory_->Destroy(root_id_); 90 surface_factory_->Destroy(root_id_);
91 91
92 surface_manager_->InvalidateFrameSinkId(frame_sink_id_); 92 surface_manager_->InvalidateFrameSinkId(frame_sink_id_);
93 } 93 }
94 94
95 void SurfacesInstance::DisplayOutputSurfaceLost() {
96 // Android WebView does not handle context loss.
97 LOG(FATAL) << "Render thread context loss";
98 }
99
95 cc::FrameSinkId SurfacesInstance::AllocateFrameSinkId() { 100 cc::FrameSinkId SurfacesInstance::AllocateFrameSinkId() {
96 return cc::FrameSinkId(next_client_id_++, 0 /* sink_id */); 101 return cc::FrameSinkId(next_client_id_++, 0 /* sink_id */);
97 } 102 }
98 103
99 cc::SurfaceManager* SurfacesInstance::GetSurfaceManager() { 104 cc::SurfaceManager* SurfacesInstance::GetSurfaceManager() {
100 return surface_manager_.get(); 105 return surface_manager_.get();
101 } 106 }
102 107
103 void SurfacesInstance::DrawAndSwap(const gfx::Size& viewport, 108 void SurfacesInstance::DrawAndSwap(const gfx::Size& viewport,
104 const gfx::Rect& clip, 109 const gfx::Rect& clip,
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 CHECK(resources.empty()); 183 CHECK(resources.empty());
179 } 184 }
180 185
181 void SurfacesInstance::SetBeginFrameSource( 186 void SurfacesInstance::SetBeginFrameSource(
182 cc::BeginFrameSource* begin_frame_source) { 187 cc::BeginFrameSource* begin_frame_source) {
183 // Parent compsitor calls DrawAndSwap directly and doesn't use 188 // Parent compsitor calls DrawAndSwap directly and doesn't use
184 // BeginFrameSource. 189 // BeginFrameSource.
185 } 190 }
186 191
187 } // namespace android_webview 192 } // namespace android_webview
OLDNEW
« no previous file with comments | « android_webview/browser/surfaces_instance.h ('k') | blimp/client/support/compositor/blimp_embedder_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698