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

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

Issue 2835203002: Reject CompositorFrames with no render passes when deserializing (Closed)
Patch Set: Fixed Android Webview Created 3 years, 8 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/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index 146ec02c0448a754cb88cd661b333437cc69a164..d055c0c21055deb4a18d9511b2ac3c5d76c35e11 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -2631,12 +2631,6 @@ void RenderWidgetHostImpl::SetNeedsBeginFrame(bool needs_begin_frame) {
void RenderWidgetHostImpl::SubmitCompositorFrame(
const cc::LocalSurfaceId& local_surface_id,
cc::CompositorFrame frame) {
- // The renderer should not send empty frames.
- if (frame.render_pass_list.empty()) {
- DLOG(ERROR) << "Renderer sent an empty frame.";
- return;
- }
-
// The renderer must allocate a new LocalSurfaceId if frame size or device
// scale factor changes.
float device_scale_factor = frame.metadata.device_scale_factor;
« no previous file with comments | « content/browser/android/synchronous_compositor_host.cc ('k') | content/common/android/sync_compositor_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698