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

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

Issue 319133003: Initialize the bitmap before drawing the VideoFrame into it, in case (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: initbitmap: . Created 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_widget_host_view_browsertest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_browsertest.cc b/content/browser/renderer_host/render_widget_host_view_browsertest.cc
index e054f219cd34f215af4fe1761b5118a5886f3cb5..34327a164fb8ce2951b4d9fd2c31b909527a7d06 100644
--- a/content/browser/renderer_host/render_widget_host_view_browsertest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_browsertest.cc
@@ -492,7 +492,7 @@ class CompositingRenderWidgetHostViewBrowserTestTabCapture
video_frame->visible_rect().height(),
kPMColor_SkColorType,
kPremul_SkAlphaType));
- bitmap.allocPixels();
+ bitmap.eraseColor(SK_ColorTRANSPARENT);
SkCanvas canvas(bitmap);
video_renderer.Paint(video_frame.get(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698