OLD | NEW |
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/playback/picture.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/base64.h" | 10 #include "base/base64.h" |
11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
12 #include "base/trace_event/trace_event_argument.h" | 12 #include "base/trace_event/trace_event_argument.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "cc/base/math_util.h" | 14 #include "cc/base/math_util.h" |
15 #include "cc/base/util.h" | 15 #include "cc/base/util.h" |
(...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 scoped_refptr<base::trace_event::ConvertableToTraceFormat> | 331 scoped_refptr<base::trace_event::ConvertableToTraceFormat> |
332 Picture::AsTraceableRecordData() const { | 332 Picture::AsTraceableRecordData() const { |
333 scoped_refptr<base::trace_event::TracedValue> record_data = | 333 scoped_refptr<base::trace_event::TracedValue> record_data = |
334 new base::trace_event::TracedValue(); | 334 new base::trace_event::TracedValue(); |
335 TracedValue::SetIDRef(this, record_data.get(), "picture_id"); | 335 TracedValue::SetIDRef(this, record_data.get(), "picture_id"); |
336 MathUtil::AddToTracedValue("layer_rect", layer_rect_, record_data.get()); | 336 MathUtil::AddToTracedValue("layer_rect", layer_rect_, record_data.get()); |
337 return record_data; | 337 return record_data; |
338 } | 338 } |
339 | 339 |
340 } // namespace cc | 340 } // namespace cc |
OLD | NEW |