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

Unified Diff: components/bitmap_uploader/bitmap_uploader.cc

Issue 2064833002: Implement DrawQuad StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix move constructor Created 4 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 | « cc/quads/tile_draw_quad.h ('k') | components/mus/public/cpp/surfaces/surfaces_type_converters.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/bitmap_uploader/bitmap_uploader.cc
diff --git a/components/bitmap_uploader/bitmap_uploader.cc b/components/bitmap_uploader/bitmap_uploader.cc
index 8f682014f85d85744974beada182371b8b1479d0..a6c78992a247196abf8ce8a53f87b4c66598f4a0 100644
--- a/components/bitmap_uploader/bitmap_uploader.cc
+++ b/components/bitmap_uploader/bitmap_uploader.cc
@@ -142,8 +142,7 @@ void BitmapUploader::Upload() {
texture_state->premultiplied_alpha = true;
texture_state->uv_top_left.SetPoint(0.f, 0.f);
texture_state->uv_bottom_right.SetPoint(1.f, 1.f);
- texture_state->background_color = cc::mojom::Color::New();
- texture_state->background_color->rgba = g_transparent_color;
+ texture_state->background_color = g_transparent_color;
for (int i = 0; i < 4; ++i)
texture_state->vertex_opacity.push_back(1.f);
texture_state->y_flipped = false;
@@ -163,8 +162,7 @@ void BitmapUploader::Upload() {
cc::mojom::SolidColorQuadStatePtr color_state =
cc::mojom::SolidColorQuadState::New();
- color_state->color = cc::mojom::Color::New();
- color_state->color->rgba = color_;
+ color_state->color = color_;
color_state->force_anti_aliasing_off = false;
quad->solid_color_quad_state = std::move(color_state);
« no previous file with comments | « cc/quads/tile_draw_quad.h ('k') | components/mus/public/cpp/surfaces/surfaces_type_converters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698