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

Unified Diff: content/browser/compositor/offscreen_browser_compositor_output_surface.cc

Issue 2443003004: cc: Make OutputSurface::BindToClient pure virtual and not return bool (Closed)
Patch Set: bindtoclient-pure-virtual: rebase Created 4 years, 2 months 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/compositor/offscreen_browser_compositor_output_surface.cc
diff --git a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc
index 8fdff08bfbdc2f41593d49485e166b44bcb59958..a43de0d4d67025c143def01d424609fdbc6e24c1 100644
--- a/content/browser/compositor/offscreen_browser_compositor_output_surface.cc
+++ b/content/browser/compositor/offscreen_browser_compositor_output_surface.cc
@@ -47,6 +47,13 @@ OffscreenBrowserCompositorOutputSurface::
DiscardBackbuffer();
}
+void OffscreenBrowserCompositorOutputSurface::BindToClient(
+ cc::OutputSurfaceClient* client) {
+ DCHECK(client);
+ DCHECK(!client_);
+ client_ = client;
+}
+
void OffscreenBrowserCompositorOutputSurface::EnsureBackbuffer() {
bool update_source_texture = !reflector_texture_ || reflector_changed_;
reflector_changed_ = false;

Powered by Google App Engine
This is Rietveld 408576698