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

Unified Diff: mojo/converters/surfaces/surfaces_utils.cc

Issue 1082723005: Fix html_viewer crash in cc when logging into gmail. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: mojo/converters/surfaces/surfaces_utils.cc
diff --git a/mojo/converters/surfaces/surfaces_utils.cc b/mojo/converters/surfaces/surfaces_utils.cc
index 7853863a31cc5337e4a6f9d76f8175a22c5a6fa8..b433722aa406248d8b5b6a315b4e5b489f2c83c7 100644
--- a/mojo/converters/surfaces/surfaces_utils.cc
+++ b/mojo/converters/surfaces/surfaces_utils.cc
@@ -27,7 +27,10 @@ SharedQuadStatePtr CreateDefaultSQS(const gfx::Size& size) {
PassPtr CreateDefaultPass(int id, const gfx::Rect& rect) {
PassPtr pass = Pass::New();
- pass->id = id;
+ RenderPassId render_pass_id;
+ render_pass_id.layer_id = 1;
+ render_pass_id.index = id;
+ pass->id = render_pass_id.Clone();
pass->output_rect = Rect::From(rect);
pass->damage_rect = Rect::From(rect);
pass->transform_to_root_target = Transform::From(gfx::Transform());
« no previous file with comments | « mojo/converters/surfaces/surfaces_type_converters.cc ('k') | mojo/converters/surfaces/tests/surface_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698