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

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

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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 | « cc/blink/web_display_item_list_impl.h ('k') | cc/blink/web_filter_animation_curve_impl.h » ('j') | 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/resources/clip_display_item.h" 10 #include "cc/resources/clip_display_item.h"
11 #include "cc/resources/drawing_display_item.h" 11 #include "cc/resources/drawing_display_item.h"
12 #include "cc/resources/filter_display_item.h" 12 #include "cc/resources/filter_display_item.h"
13 #include "cc/resources/float_clip_display_item.h"
13 #include "cc/resources/transform_display_item.h" 14 #include "cc/resources/transform_display_item.h"
14 #include "cc/resources/transparency_display_item.h" 15 #include "cc/resources/transparency_display_item.h"
15 #include "skia/ext/refptr.h" 16 #include "skia/ext/refptr.h"
16 #include "third_party/WebKit/public/platform/WebFloatRect.h" 17 #include "third_party/WebKit/public/platform/WebFloatRect.h"
17 #include "third_party/WebKit/public/platform/WebRect.h" 18 #include "third_party/WebKit/public/platform/WebRect.h"
18 #include "third_party/skia/include/core/SkImageFilter.h" 19 #include "third_party/skia/include/core/SkImageFilter.h"
19 #include "third_party/skia/include/core/SkPicture.h" 20 #include "third_party/skia/include/core/SkPicture.h"
20 #include "third_party/skia/include/utils/SkMatrix44.h" 21 #include "third_party/skia/include/utils/SkMatrix44.h"
21 #include "ui/gfx/transform.h" 22 #include "ui/gfx/transform.h"
22 23
(...skipping 22 matching lines...) Expand all
45 rounded_rects.push_back(rounded_clip_rects[i]); 46 rounded_rects.push_back(rounded_clip_rects[i]);
46 } 47 }
47 display_item_list_->AppendItem( 48 display_item_list_->AppendItem(
48 cc::ClipDisplayItem::Create(clip_rect, rounded_rects)); 49 cc::ClipDisplayItem::Create(clip_rect, rounded_rects));
49 } 50 }
50 51
51 void WebDisplayItemListImpl::appendEndClipItem() { 52 void WebDisplayItemListImpl::appendEndClipItem() {
52 display_item_list_->AppendItem(cc::EndClipDisplayItem::Create()); 53 display_item_list_->AppendItem(cc::EndClipDisplayItem::Create());
53 } 54 }
54 55
56 void WebDisplayItemListImpl::appendFloatClipItem(
57 const blink::WebFloatRect& clip_rect) {
58 display_item_list_->AppendItem(cc::FloatClipDisplayItem::Create(clip_rect));
59 }
60
61 void WebDisplayItemListImpl::appendEndFloatClipItem() {
62 display_item_list_->AppendItem(cc::EndFloatClipDisplayItem::Create());
63 }
64
55 void WebDisplayItemListImpl::appendTransformItem(const SkMatrix44& matrix) { 65 void WebDisplayItemListImpl::appendTransformItem(const SkMatrix44& matrix) {
56 gfx::Transform transform; 66 gfx::Transform transform;
57 transform.matrix() = matrix; 67 transform.matrix() = matrix;
58 display_item_list_->AppendItem(cc::TransformDisplayItem::Create(transform)); 68 display_item_list_->AppendItem(cc::TransformDisplayItem::Create(transform));
59 } 69 }
60 70
61 void WebDisplayItemListImpl::appendTransparencyItem( 71 void WebDisplayItemListImpl::appendTransparencyItem(
62 float opacity, 72 float opacity,
63 blink::WebBlendMode blend_mode) { 73 blink::WebBlendMode blend_mode) {
64 display_item_list_->AppendItem(cc::TransparencyDisplayItem::Create( 74 display_item_list_->AppendItem(cc::TransparencyDisplayItem::Create(
(...skipping 16 matching lines...) Expand all
81 } 91 }
82 92
83 void WebDisplayItemListImpl::appendEndFilterItem() { 93 void WebDisplayItemListImpl::appendEndFilterItem() {
84 display_item_list_->AppendItem(cc::EndFilterDisplayItem::Create()); 94 display_item_list_->AppendItem(cc::EndFilterDisplayItem::Create());
85 } 95 }
86 96
87 WebDisplayItemListImpl::~WebDisplayItemListImpl() { 97 WebDisplayItemListImpl::~WebDisplayItemListImpl() {
88 } 98 }
89 99
90 } // namespace cc_blink 100 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/blink/web_filter_animation_curve_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698