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

Unified Diff: components/bitmap_uploader/bitmap_uploader.cc

Issue 2032643002: Implement cc::SharedQuadState StructTraits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed StructTraits + added unittest Created 4 years, 7 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: components/bitmap_uploader/bitmap_uploader.cc
diff --git a/components/bitmap_uploader/bitmap_uploader.cc b/components/bitmap_uploader/bitmap_uploader.cc
index e34338aed1247c3a73aabebd230682b3da34631e..0d5ab4a7420429e569feb3e3fd99c4b2a6a81b12 100644
--- a/components/bitmap_uploader/bitmap_uploader.cc
+++ b/components/bitmap_uploader/bitmap_uploader.cc
@@ -92,8 +92,9 @@ void BitmapUploader::Upload() {
frame->resources.resize(0u);
pass->quads.resize(0u);
- pass->shared_quad_states.push_back(
+ std::unique_ptr<cc::SharedQuadState> sqs(
mojo::CreateDefaultSQS(bounds.size()));
+ pass->shared_quad_states.push_back(std::move(sqs));
if (bitmap_.get()) {
gpu::gles2::GLES2Interface* gl = gles2_context_->interface();

Powered by Google App Engine
This is Rietveld 408576698