| 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/blink/web_display_item_list_impl.h" | 5 #include "cc/blink/web_display_item_list_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 : display_item_list_(CreateUncachedDisplayItemListForBlink()) { | 42 : display_item_list_(CreateUncachedDisplayItemListForBlink()) { |
| 43 } | 43 } |
| 44 | 44 |
| 45 WebDisplayItemListImpl::WebDisplayItemListImpl( | 45 WebDisplayItemListImpl::WebDisplayItemListImpl( |
| 46 cc::DisplayItemList* display_list) | 46 cc::DisplayItemList* display_list) |
| 47 : display_item_list_(display_list) { | 47 : display_item_list_(display_list) { |
| 48 } | 48 } |
| 49 | 49 |
| 50 void WebDisplayItemListImpl::appendDrawingItem( | 50 void WebDisplayItemListImpl::appendDrawingItem( |
| 51 const blink::WebRect& visual_rect, | 51 const blink::WebRect& visual_rect, |
| 52 sk_sp<const SkPicture> picture) { | 52 sk_sp<const CdlPicture> picture) { |
| 53 display_item_list_->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>( | 53 display_item_list_->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>( |
| 54 visual_rect, std::move(picture)); | 54 visual_rect, std::move(picture)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void WebDisplayItemListImpl::appendClipItem( | 57 void WebDisplayItemListImpl::appendClipItem( |
| 58 const blink::WebRect& clip_rect, | 58 const blink::WebRect& clip_rect, |
| 59 const blink::WebVector<SkRRect>& rounded_clip_rects) { | 59 const blink::WebVector<SkRRect>& rounded_clip_rects) { |
| 60 std::vector<SkRRect> rounded_rects; | 60 std::vector<SkRRect> rounded_rects; |
| 61 for (size_t i = 0; i < rounded_clip_rects.size(); ++i) { | 61 for (size_t i = 0; i < rounded_clip_rects.size(); ++i) { |
| 62 rounded_rects.push_back(rounded_clip_rects[i]); | 62 rounded_rects.push_back(rounded_clip_rects[i]); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 | 163 |
| 164 void WebDisplayItemListImpl::setImpliedColorSpace( | 164 void WebDisplayItemListImpl::setImpliedColorSpace( |
| 165 const gfx::ColorSpace& implied_color_space) { | 165 const gfx::ColorSpace& implied_color_space) { |
| 166 display_item_list_->SetImpliedColorSpace(implied_color_space); | 166 display_item_list_->SetImpliedColorSpace(implied_color_space); |
| 167 } | 167 } |
| 168 | 168 |
| 169 WebDisplayItemListImpl::~WebDisplayItemListImpl() { | 169 WebDisplayItemListImpl::~WebDisplayItemListImpl() { |
| 170 } | 170 } |
| 171 | 171 |
| 172 } // namespace cc_blink | 172 } // namespace cc_blink |
| OLD | NEW |