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

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

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 12 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 a4a88ac432c1fc51d0d705e72bf348348063c833..045fa0be3e259f534873e317b83ef3d1adad9767 100644
--- a/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
+++ b/content/browser/renderer_host/offscreen_canvas_surface_impl.cc
@@ -45,17 +45,13 @@ void OffscreenCanvasSurfaceImpl::Create(
}
void OffscreenCanvasSurfaceImpl::OnSurfaceCreated(
- const cc::SurfaceId& surface_id,
- const gfx::Size& frame_size,
- float device_scale_factor) {
- DCHECK_EQ(surface_id.frame_sink_id(), frame_sink_id_);
+ const cc::SurfaceInfo& surface_info) {
+ DCHECK_EQ(surface_info.id().frame_sink_id(), frame_sink_id_);
if (!current_local_frame_id_.is_valid() ||
- surface_id.local_frame_id() != current_local_frame_id_) {
- current_local_frame_id_ = surface_id.local_frame_id();
- if (client_) {
- client_->OnSurfaceCreated(surface_id, frame_size.width(),
- frame_size.height(), device_scale_factor);
- }
+ surface_info.id().local_frame_id() != current_local_frame_id_) {
+ current_local_frame_id_ = surface_info.id().local_frame_id();
+ if (client_)
+ client_->OnSurfaceCreated(surface_info);
}
}

Powered by Google App Engine
This is Rietveld 408576698