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

Side by Side Diff: content/common/cc_messages.cc

Issue 1544293002: Convert Pass()→std::move() in //content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | content/common/cc_messages_perftest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/common/cc_messages.h" 5 #include "content/common/cc_messages.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility>
8 9
9 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
10 #include "cc/output/filter_operations.h" 11 #include "cc/output/filter_operations.h"
11 #include "cc/quads/draw_quad.h" 12 #include "cc/quads/draw_quad.h"
12 #include "cc/quads/largest_draw_quad.h" 13 #include "cc/quads/largest_draw_quad.h"
13 #include "cc/quads/render_pass_id.h" 14 #include "cc/quads/render_pass_id.h"
14 #include "content/public/common/common_param_traits.h" 15 #include "content/public/common/common_param_traits.h"
15 #include "third_party/skia/include/core/SkData.h" 16 #include "third_party/skia/include/core/SkData.h"
16 #include "third_party/skia/include/core/SkFlattenableSerialization.h" 17 #include "third_party/skia/include/core/SkFlattenableSerialization.h"
17 #include "ui/gfx/transform.h" 18 #include "ui/gfx/transform.h"
(...skipping 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
721 // earlier in the frame. 722 // earlier in the frame.
722 for (const auto* quad : render_pass->quad_list) { 723 for (const auto* quad : render_pass->quad_list) {
723 if (quad->material != cc::DrawQuad::RENDER_PASS) 724 if (quad->material != cc::DrawQuad::RENDER_PASS)
724 continue; 725 continue;
725 const cc::RenderPassDrawQuad* rpdq = 726 const cc::RenderPassDrawQuad* rpdq =
726 cc::RenderPassDrawQuad::MaterialCast(quad); 727 cc::RenderPassDrawQuad::MaterialCast(quad);
727 if (!pass_set.count(rpdq->render_pass_id)) 728 if (!pass_set.count(rpdq->render_pass_id))
728 return false; 729 return false;
729 } 730 }
730 pass_set.insert(render_pass->id); 731 pass_set.insert(render_pass->id);
731 p->render_pass_list.push_back(render_pass.Pass()); 732 p->render_pass_list.push_back(std::move(render_pass));
732 } 733 }
733 return true; 734 return true;
734 } 735 }
735 736
736 void ParamTraits<cc::DelegatedFrameData>::Log(const param_type& p, 737 void ParamTraits<cc::DelegatedFrameData>::Log(const param_type& p,
737 std::string* l) { 738 std::string* l) {
738 l->append("DelegatedFrameData("); 739 l->append("DelegatedFrameData(");
739 LogParam(p.device_scale_factor, l); 740 LogParam(p.device_scale_factor, l);
740 LogParam(p.resource_list, l); 741 LogParam(p.resource_list, l);
741 l->append(", ["); 742 l->append(", [");
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 l->append("TextureDrawQuad::OverlayResources(["); 844 l->append("TextureDrawQuad::OverlayResources([");
844 for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) { 845 for (size_t i = 0; i < cc::DrawQuad::Resources::kMaxResourceIdCount; ++i) {
845 LogParam(p.size_in_pixels[i], l); 846 LogParam(p.size_in_pixels[i], l);
846 if (i < (cc::DrawQuad::Resources::kMaxResourceIdCount - 1)) 847 if (i < (cc::DrawQuad::Resources::kMaxResourceIdCount - 1))
847 l->append(", "); 848 l->append(", ");
848 } 849 }
849 l->append("])"); 850 l->append("])");
850 } 851 }
851 852
852 } // namespace IPC 853 } // namespace IPC
OLDNEW
« no previous file with comments | « content/child/webmessageportchannel_impl.cc ('k') | content/common/cc_messages_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698