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

Side by Side Diff: cc/resources/picture.cc

Issue 853393002: cc: refactor of MathUtil::AddToTracedValue (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/resources/picture_layer_tiling.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 "cc/resources/picture.h" 5 #include "cc/resources/picture.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <limits> 8 #include <limits>
9 #include <set> 9 #include <set>
10 10
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 TracedValue::SetIDRef(this, raster_data.get(), "picture_id"); 463 TracedValue::SetIDRef(this, raster_data.get(), "picture_id");
464 raster_data->SetDouble("scale", scale); 464 raster_data->SetDouble("scale", scale);
465 return raster_data; 465 return raster_data;
466 } 466 }
467 467
468 scoped_refptr<base::debug::ConvertableToTraceFormat> 468 scoped_refptr<base::debug::ConvertableToTraceFormat>
469 Picture::AsTraceableRecordData() const { 469 Picture::AsTraceableRecordData() const {
470 scoped_refptr<base::debug::TracedValue> record_data = 470 scoped_refptr<base::debug::TracedValue> record_data =
471 new base::debug::TracedValue(); 471 new base::debug::TracedValue();
472 TracedValue::SetIDRef(this, record_data.get(), "picture_id"); 472 TracedValue::SetIDRef(this, record_data.get(), "picture_id");
473 record_data->BeginArray("layer_rect"); 473 MathUtil::AddToTracedValue("layer_rect", layer_rect_, record_data.get());
474 MathUtil::AddToTracedValue(layer_rect_, record_data.get());
475 record_data->EndArray();
476 return record_data; 474 return record_data;
477 } 475 }
478 476
479 } // namespace cc 477 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/yuv_video_draw_quad.cc ('k') | cc/resources/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698