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

Unified Diff: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp

Issue 2919373002: cc: De-special-case SurfaceLayer code (Closed)
Patch Set: Fix cc_unittests Created 3 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
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
index 961d72829ed9aff481ceb4b2000ce1f2b55a6443..24c0ae0b3d88eafb0b4cb7f0f8ae844faa3a0c83 100644
--- a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
@@ -101,6 +101,7 @@ void CanvasSurfaceLayerBridge::OnSurfaceCreated(
scoped_refptr<cc::SurfaceLayer> surface_layer =
cc::SurfaceLayer::Create(ref_factory_);
surface_layer->SetPrimarySurfaceInfo(surface_info);
+ surface_layer->SetFallbackSurfaceInfo(surface_info);
surface_layer->SetStretchContentToFillBounds(true);
cc_layer_ = surface_layer;
@@ -115,6 +116,7 @@ void CanvasSurfaceLayerBridge::OnSurfaceCreated(
cc::SurfaceLayer* surface_layer =
static_cast<cc::SurfaceLayer*>(cc_layer_.get());
surface_layer->SetPrimarySurfaceInfo(surface_info);
+ surface_layer->SetFallbackSurfaceInfo(surface_info);
}
observer_->OnWebLayerReplaced();
« no previous file with comments | « content/renderer/child_frame_compositing_helper.cc ('k') | ui/android/delegated_frame_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698