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

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

Issue 1158433010: Reland: cc: Fix size_t to int truncations in layers/ output/ playback/ quads/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mojo update Created 5 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 unified diff | Download patch
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 "cc/output/compositor_frame.h" 7 #include "cc/output/compositor_frame.h"
8 #include "cc/output/filter_operations.h" 8 #include "cc/output/filter_operations.h"
9 #include "cc/quads/draw_quad.h" 9 #include "cc/quads/draw_quad.h"
10 #include "cc/quads/largest_draw_quad.h" 10 #include "cc/quads/largest_draw_quad.h"
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 cc::RenderPass* render_pass) { 395 cc::RenderPass* render_pass) {
396 QuadType* quad = render_pass->CreateAndAppendDrawQuad<QuadType>(); 396 QuadType* quad = render_pass->CreateAndAppendDrawQuad<QuadType>();
397 if (!ReadParam(m, iter, quad)) 397 if (!ReadParam(m, iter, quad))
398 return NULL; 398 return NULL;
399 return quad; 399 return quad;
400 } 400 }
401 401
402 bool ParamTraits<cc::RenderPass>::Read(const Message* m, 402 bool ParamTraits<cc::RenderPass>::Read(const Message* m,
403 base::PickleIterator* iter, 403 base::PickleIterator* iter,
404 param_type* p) { 404 param_type* p) {
405 cc::RenderPassId id(-1, -1); 405 cc::RenderPassId id;
406 gfx::Rect output_rect; 406 gfx::Rect output_rect;
407 gfx::Rect damage_rect; 407 gfx::Rect damage_rect;
408 gfx::Transform transform_to_root_target; 408 gfx::Transform transform_to_root_target;
409 bool has_transparent_background; 409 bool has_transparent_background;
410 size_t quad_list_size; 410 size_t quad_list_size;
411 411
412 if (!ReadParam(m, iter, &id) || 412 if (!ReadParam(m, iter, &id) ||
413 !ReadParam(m, iter, &output_rect) || 413 !ReadParam(m, iter, &output_rect) ||
414 !ReadParam(m, iter, &damage_rect) || 414 !ReadParam(m, iter, &damage_rect) ||
415 !ReadParam(m, iter, &transform_to_root_target) || 415 !ReadParam(m, iter, &transform_to_root_target) ||
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 848
849 for (size_t i = 0; i < p.count; ++i) { 849 for (size_t i = 0; i < p.count; ++i) {
850 LogParam(p.ids[i], l); 850 LogParam(p.ids[i], l);
851 if (i < (p.count - 1)) 851 if (i < (p.count - 1))
852 l->append(", "); 852 l->append(", ");
853 } 853 }
854 l->append("])"); 854 l->append("])");
855 } 855 }
856 856
857 } // namespace IPC 857 } // namespace IPC
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698