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

Unified Diff: content/browser/renderer_host/offscreen_canvas_surface_impl.cc

Issue 2102123002: Make Satisfy/Require callbacks pass Surface id and sequence by reference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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/renderer_host/offscreen_canvas_surface_impl.cc
diff --git a/content/browser/renderer_host/offscreen_canvas_surface_impl.cc b/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
index e6b85f59a9fbdc0e0126b1cae964f6f058965466..8e56b01416afb1a9c77b66fa8fb89a0ebe9253b8 100644
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
@@ -29,9 +29,9 @@ OffscreenCanvasSurfaceImpl::~OffscreenCanvasSurfaceImpl() {
// Inform both members that SurfaceManager's no longer alive to
// avoid their destruction errors.
if (surface_factory_)
- surface_factory_->didDestroySurfaceManager();
+ surface_factory_->DidDestroySurfaceManager();
if (id_allocator_)
- id_allocator_->didDestroySurfaceManager();
+ id_allocator_->DidDestroySurfaceManager();
}
surface_factory_->Destroy(surface_id_);
}
@@ -77,7 +77,7 @@ void OffscreenCanvasSurfaceImpl::Satisfy(const cc::SurfaceSequence& sequence) {
void OffscreenCanvasSurfaceImpl::ReturnResources(
const cc::ReturnedResourceArray& resources) {}
-void OffscreenCanvasSurfaceImpl::WillDrawSurface(cc::SurfaceId id,
+void OffscreenCanvasSurfaceImpl::WillDrawSurface(const cc::SurfaceId& id,
const gfx::Rect& damage_rect) {
}

Powered by Google App Engine
This is Rietveld 408576698