OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/drawing_display_item.h" | 5 #include "cc/resources/drawing_display_item.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/strings/stringprintf.h" | 9 #include "base/strings/stringprintf.h" |
10 #include "base/trace_event/trace_event_argument.h" | 10 #include "base/trace_event/trace_event_argument.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 "cullRect", | 55 "cullRect", |
56 base::StringPrintf("[%f,%f,%f,%f]", picture_->cullRect().x(), | 56 base::StringPrintf("[%f,%f,%f,%f]", picture_->cullRect().x(), |
57 picture_->cullRect().y(), picture_->cullRect().width(), | 57 picture_->cullRect().y(), picture_->cullRect().width(), |
58 picture_->cullRect().height())); | 58 picture_->cullRect().height())); |
59 std::string b64_picture; | 59 std::string b64_picture; |
60 PictureDebugUtil::SerializeAsBase64(picture_.get(), &b64_picture); | 60 PictureDebugUtil::SerializeAsBase64(picture_.get(), &b64_picture); |
61 array->SetString("skp64", b64_picture); | 61 array->SetString("skp64", b64_picture); |
62 array->EndDictionary(); | 62 array->EndDictionary(); |
63 } | 63 } |
64 | 64 |
| 65 scoped_ptr<DrawingDisplayItem> DrawingDisplayItem::Clone() { |
| 66 return Create(picture_); |
| 67 } |
| 68 |
65 } // namespace cc | 69 } // namespace cc |
OLD | NEW |