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

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

Issue 937463002: Fix location setting for Drawing Display Items in cc. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 7 #include <vector>
8 8
9 #include "cc/blink/web_blend_mode.h" 9 #include "cc/blink/web_blend_mode.h"
10 #include "cc/blink/web_filter_operations_impl.h" 10 #include "cc/blink/web_filter_operations_impl.h"
(...skipping 17 matching lines...) Expand all
28 WebDisplayItemListImpl::WebDisplayItemListImpl() 28 WebDisplayItemListImpl::WebDisplayItemListImpl()
29 : display_item_list_(cc::DisplayItemList::Create()) { 29 : display_item_list_(cc::DisplayItemList::Create()) {
30 } 30 }
31 31
32 scoped_refptr<cc::DisplayItemList> WebDisplayItemListImpl::ToDisplayItemList() { 32 scoped_refptr<cc::DisplayItemList> WebDisplayItemListImpl::ToDisplayItemList() {
33 return display_item_list_; 33 return display_item_list_;
34 } 34 }
35 35
36 void WebDisplayItemListImpl::appendDrawingItem(const SkPicture* picture) { 36 void WebDisplayItemListImpl::appendDrawingItem(const SkPicture* picture) {
37 display_item_list_->AppendItem(cc::DrawingDisplayItem::Create( 37 display_item_list_->AppendItem(cc::DrawingDisplayItem::Create(
38 skia::SharePtr(const_cast<SkPicture*>(picture)), 38 skia::SharePtr(const_cast<SkPicture*>(picture)), gfx::PointF(0, 0)));
39 gfx::PointF(picture->cullRect().x(), picture->cullRect().y())));
40 } 39 }
41 40
42 void WebDisplayItemListImpl::appendDrawingItem( 41 void WebDisplayItemListImpl::appendDrawingItem(
43 SkPicture* picture, 42 SkPicture* picture,
44 const blink::WebFloatPoint& location) { 43 const blink::WebFloatPoint& location) {
45 display_item_list_->AppendItem( 44 display_item_list_->AppendItem(
46 cc::DrawingDisplayItem::Create(skia::SharePtr(picture), location)); 45 cc::DrawingDisplayItem::Create(skia::SharePtr(picture), location));
47 } 46 }
48 47
49 void WebDisplayItemListImpl::appendClipItem( 48 void WebDisplayItemListImpl::appendClipItem(
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 #endif 123 #endif
125 124
126 void WebDisplayItemListImpl::appendEndFilterItem() { 125 void WebDisplayItemListImpl::appendEndFilterItem() {
127 display_item_list_->AppendItem(cc::EndFilterDisplayItem::Create()); 126 display_item_list_->AppendItem(cc::EndFilterDisplayItem::Create());
128 } 127 }
129 128
130 WebDisplayItemListImpl::~WebDisplayItemListImpl() { 129 WebDisplayItemListImpl::~WebDisplayItemListImpl() {
131 } 130 }
132 131
133 } // namespace cc_blink 132 } // namespace cc_blink
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698