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/playback/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" |
11 #include "cc/debug/picture_debug_util.h" | 11 #include "cc/debug/picture_debug_util.h" |
12 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
13 #include "third_party/skia/include/core/SkDrawPictureCallback.h" | 13 #include "third_party/skia/include/core/SkDrawPictureCallback.h" |
14 #include "third_party/skia/include/core/SkMatrix.h" | 14 #include "third_party/skia/include/core/SkMatrix.h" |
15 #include "third_party/skia/include/core/SkPicture.h" | 15 #include "third_party/skia/include/core/SkPicture.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 PictureDebugUtil::SerializeAsBase64(picture_.get(), &b64_picture); | 53 PictureDebugUtil::SerializeAsBase64(picture_.get(), &b64_picture); |
54 array->SetString("skp64", b64_picture); | 54 array->SetString("skp64", b64_picture); |
55 array->EndDictionary(); | 55 array->EndDictionary(); |
56 } | 56 } |
57 | 57 |
58 void DrawingDisplayItem::CloneTo(DrawingDisplayItem* item) const { | 58 void DrawingDisplayItem::CloneTo(DrawingDisplayItem* item) const { |
59 item->SetNew(picture_); | 59 item->SetNew(picture_); |
60 } | 60 } |
61 | 61 |
62 } // namespace cc | 62 } // namespace cc |
OLD | NEW |