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

Unified Diff: components/bitmap_uploader/bitmap_uploader.cc

Issue 2042643002: Implement cc::CompositorFrameMetadata StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comment 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/ipc/typemaps.gni ('k') | components/mus/public/cpp/surfaces/custom_surface_converter.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 b52aa8a69c8aa3debb5277d95d0e46c64163d727..b409386a4bed6624b93dd677da171d13ef33d0ca 100644
--- a/components/bitmap_uploader/bitmap_uploader.cc
+++ b/components/bitmap_uploader/bitmap_uploader.cc
@@ -75,10 +75,7 @@ void BitmapUploader::Upload() {
mus::mojom::CompositorFramePtr frame = mus::mojom::CompositorFrame::New();
// TODO(rjkroege): Support device scale factor in PDF viewer
- mus::mojom::CompositorFrameMetadataPtr meta =
- mus::mojom::CompositorFrameMetadata::New();
- meta->device_scale_factor = 1.0f;
- frame->metadata = std::move(meta);
+ frame->metadata.device_scale_factor = 1.0f;
frame->resources.resize(0u);
« no previous file with comments | « cc/ipc/typemaps.gni ('k') | components/mus/public/cpp/surfaces/custom_surface_converter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698