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/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 |
11 #include "base/base64.h" | 11 #include "base/base64.h" |
12 #include "base/debug/trace_event.h" | 12 #include "base/trace_event/trace_event.h" |
13 #include "base/debug/trace_event_argument.h" | 13 #include "base/trace_event/trace_event_argument.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "cc/base/math_util.h" | 15 #include "cc/base/math_util.h" |
16 #include "cc/base/util.h" | 16 #include "cc/base/util.h" |
17 #include "cc/debug/picture_debug_util.h" | 17 #include "cc/debug/picture_debug_util.h" |
18 #include "cc/debug/traced_picture.h" | 18 #include "cc/debug/traced_picture.h" |
19 #include "cc/debug/traced_value.h" | 19 #include "cc/debug/traced_value.h" |
20 #include "cc/layers/content_layer_client.h" | 20 #include "cc/layers/content_layer_client.h" |
21 #include "skia/ext/pixel_ref_utils.h" | 21 #include "skia/ext/pixel_ref_utils.h" |
22 #include "third_party/skia/include/core/SkCanvas.h" | 22 #include "third_party/skia/include/core/SkCanvas.h" |
23 #include "third_party/skia/include/core/SkDrawPictureCallback.h" | 23 #include "third_party/skia/include/core/SkDrawPictureCallback.h" |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 MathUtil::AddToTracedValue("layer_rect", layer_rect_, record_data.get()); | 473 MathUtil::AddToTracedValue("layer_rect", layer_rect_, record_data.get()); |
474 return record_data; | 474 return record_data; |
475 } | 475 } |
476 | 476 |
477 } // namespace cc | 477 } // namespace cc |
OLD | NEW |