OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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/layers/picture_image_layer.h" | 5 #include "cc/layers/picture_image_layer.h" |
6 | 6 |
7 #include "cc/layers/picture_image_layer_impl.h" | 7 #include "cc/layers/picture_image_layer_impl.h" |
8 #include "cc/resources/drawing_display_item.h" | 8 #include "cc/playback/drawing_display_item.h" |
9 #include "third_party/skia/include/core/SkCanvas.h" | 9 #include "third_party/skia/include/core/SkCanvas.h" |
10 #include "third_party/skia/include/core/SkPictureRecorder.h" | 10 #include "third_party/skia/include/core/SkPictureRecorder.h" |
11 #include "ui/gfx/skia_util.h" | 11 #include "ui/gfx/skia_util.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 scoped_refptr<PictureImageLayer> PictureImageLayer::Create() { | 15 scoped_refptr<PictureImageLayer> PictureImageLayer::Create() { |
16 return make_scoped_refptr(new PictureImageLayer()); | 16 return make_scoped_refptr(new PictureImageLayer()); |
17 } | 17 } |
18 | 18 |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 skia::AdoptRef(recorder.endRecordingAsPicture()); | 75 skia::AdoptRef(recorder.endRecordingAsPicture()); |
76 auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>(); | 76 auto* item = display_list->CreateAndAppendItem<DrawingDisplayItem>(); |
77 item->SetNew(picture.Pass()); | 77 item->SetNew(picture.Pass()); |
78 } | 78 } |
79 | 79 |
80 bool PictureImageLayer::FillsBoundsCompletely() const { | 80 bool PictureImageLayer::FillsBoundsCompletely() const { |
81 return false; | 81 return false; |
82 } | 82 } |
83 | 83 |
84 } // namespace cc | 84 } // namespace cc |
OLD | NEW |