Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Side by Side Diff: cc/blink/web_display_item_list_impl.cc

Issue 2678903003: cc: Clean up naming of paint-related identifiers (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 23 matching lines...) Expand all
34 WebDisplayItemListImpl::WebDisplayItemListImpl() 34 WebDisplayItemListImpl::WebDisplayItemListImpl()
35 : display_item_list_(new cc::DisplayItemList) {} 35 : display_item_list_(new cc::DisplayItemList) {}
36 36
37 WebDisplayItemListImpl::WebDisplayItemListImpl( 37 WebDisplayItemListImpl::WebDisplayItemListImpl(
38 cc::DisplayItemList* display_list) 38 cc::DisplayItemList* display_list)
39 : display_item_list_(display_list) { 39 : display_item_list_(display_list) {
40 } 40 }
41 41
42 void WebDisplayItemListImpl::appendDrawingItem( 42 void WebDisplayItemListImpl::appendDrawingItem(
43 const blink::WebRect& visual_rect, 43 const blink::WebRect& visual_rect,
44 sk_sp<const cc::PaintRecord> picture) { 44 sk_sp<const cc::PaintRecord> record) {
45 display_item_list_->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>( 45 display_item_list_->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>(
46 visual_rect, std::move(picture)); 46 visual_rect, std::move(record));
47 } 47 }
48 48
49 void WebDisplayItemListImpl::appendClipItem( 49 void WebDisplayItemListImpl::appendClipItem(
50 const blink::WebRect& clip_rect, 50 const blink::WebRect& clip_rect,
51 const blink::WebVector<SkRRect>& rounded_clip_rects) { 51 const blink::WebVector<SkRRect>& rounded_clip_rects) {
52 std::vector<SkRRect> rounded_rects; 52 std::vector<SkRRect> rounded_rects;
53 for (size_t i = 0; i < rounded_clip_rects.size(); ++i) { 53 for (size_t i = 0; i < rounded_clip_rects.size(); ++i) {
54 rounded_rects.push_back(rounded_clip_rects[i]); 54 rounded_rects.push_back(rounded_clip_rects[i]);
55 } 55 }
56 bool antialias = true; 56 bool antialias = true;
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 153
154 void WebDisplayItemListImpl::setImpliedColorSpace( 154 void WebDisplayItemListImpl::setImpliedColorSpace(
155 const gfx::ColorSpace& implied_color_space) { 155 const gfx::ColorSpace& implied_color_space) {
156 display_item_list_->SetImpliedColorSpace(implied_color_space); 156 display_item_list_->SetImpliedColorSpace(implied_color_space);
157 } 157 }
158 158
159 WebDisplayItemListImpl::~WebDisplayItemListImpl() { 159 WebDisplayItemListImpl::~WebDisplayItemListImpl() {
160 } 160 }
161 161
162 } // namespace cc_blink 162 } // namespace cc_blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698