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

Unified Diff: cc/blink/web_display_item_list_impl.cc

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/blink/web_external_bitmap_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_display_item_list_impl.cc
diff --git a/cc/blink/web_display_item_list_impl.cc b/cc/blink/web_display_item_list_impl.cc
deleted file mode 100644
index 6a4ab90d10ff6cdf24a8ae5e5ab0cfba94b78fee..0000000000000000000000000000000000000000
--- a/cc/blink/web_display_item_list_impl.cc
+++ /dev/null
@@ -1,136 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/blink/web_display_item_list_impl.h"
-
-#include <vector>
-
-#include "cc/blink/web_blend_mode.h"
-#include "cc/blink/web_filter_operations_impl.h"
-#include "cc/resources/clip_display_item.h"
-#include "cc/resources/clip_path_display_item.h"
-#include "cc/resources/compositing_display_item.h"
-#include "cc/resources/drawing_display_item.h"
-#include "cc/resources/filter_display_item.h"
-#include "cc/resources/float_clip_display_item.h"
-#include "cc/resources/transform_display_item.h"
-#include "skia/ext/refptr.h"
-#include "third_party/WebKit/public/platform/WebFloatRect.h"
-#include "third_party/WebKit/public/platform/WebRect.h"
-#include "third_party/skia/include/core/SkColorFilter.h"
-#include "third_party/skia/include/core/SkImageFilter.h"
-#include "third_party/skia/include/core/SkPicture.h"
-#include "third_party/skia/include/utils/SkMatrix44.h"
-#include "ui/gfx/transform.h"
-
-namespace cc_blink {
-
-WebDisplayItemListImpl::WebDisplayItemListImpl()
- : display_item_list_(cc::DisplayItemList::Create()) {
-}
-
-scoped_refptr<cc::DisplayItemList> WebDisplayItemListImpl::ToDisplayItemList() {
- return display_item_list_;
-}
-
-void WebDisplayItemListImpl::appendDrawingItem(const SkPicture* picture) {
- display_item_list_->AppendItem(cc::DrawingDisplayItem::Create(
- skia::SharePtr(const_cast<SkPicture*>(picture))));
-}
-
-void WebDisplayItemListImpl::appendClipItem(
- const blink::WebRect& clip_rect,
- const blink::WebVector<SkRRect>& rounded_clip_rects) {
- std::vector<SkRRect> rounded_rects;
- for (size_t i = 0; i < rounded_clip_rects.size(); ++i) {
- rounded_rects.push_back(rounded_clip_rects[i]);
- }
- display_item_list_->AppendItem(
- cc::ClipDisplayItem::Create(clip_rect, rounded_rects));
-}
-
-void WebDisplayItemListImpl::appendEndClipItem() {
- display_item_list_->AppendItem(cc::EndClipDisplayItem::Create());
-}
-
-void WebDisplayItemListImpl::appendClipPathItem(const SkPath& clip_path,
- SkRegion::Op clip_op,
- bool antialias) {
- display_item_list_->AppendItem(
- cc::ClipPathDisplayItem::Create(clip_path, clip_op, antialias));
-}
-
-void WebDisplayItemListImpl::appendEndClipPathItem() {
- display_item_list_->AppendItem(cc::EndClipPathDisplayItem::Create());
-}
-
-void WebDisplayItemListImpl::appendFloatClipItem(
- const blink::WebFloatRect& clip_rect) {
- display_item_list_->AppendItem(cc::FloatClipDisplayItem::Create(clip_rect));
-}
-
-void WebDisplayItemListImpl::appendEndFloatClipItem() {
- display_item_list_->AppendItem(cc::EndFloatClipDisplayItem::Create());
-}
-
-void WebDisplayItemListImpl::appendTransformItem(const SkMatrix44& matrix) {
- gfx::Transform transform;
- transform.matrix() = matrix;
- display_item_list_->AppendItem(cc::TransformDisplayItem::Create(transform));
-}
-
-void WebDisplayItemListImpl::appendEndTransformItem() {
- display_item_list_->AppendItem(cc::EndTransformDisplayItem::Create());
-}
-
-// TODO(pdr): Remove this once the blink-side callers have been removed.
-void WebDisplayItemListImpl::appendCompositingItem(
- float opacity,
- SkXfermode::Mode xfermode,
- SkColorFilter* color_filter) {
- appendCompositingItem(opacity, xfermode, nullptr, color_filter);
-}
-
-void WebDisplayItemListImpl::appendCompositingItem(
- float opacity,
- SkXfermode::Mode xfermode,
- SkRect* bounds,
- SkColorFilter* color_filter) {
- display_item_list_->AppendItem(cc::CompositingDisplayItem::Create(
- opacity, xfermode, bounds, skia::SharePtr(color_filter)));
-}
-
-void WebDisplayItemListImpl::appendEndCompositingItem() {
- display_item_list_->AppendItem(cc::EndCompositingDisplayItem::Create());
-}
-
-void WebDisplayItemListImpl::appendFilterItem(
- const blink::WebFilterOperations& filters,
- const blink::WebFloatRect& bounds) {
- const WebFilterOperationsImpl& filters_impl =
- static_cast<const WebFilterOperationsImpl&>(filters);
- display_item_list_->AppendItem(
- cc::FilterDisplayItem::Create(filters_impl.AsFilterOperations(), bounds));
-}
-
-void WebDisplayItemListImpl::appendEndFilterItem() {
- display_item_list_->AppendItem(cc::EndFilterDisplayItem::Create());
-}
-
-void WebDisplayItemListImpl::appendScrollItem(
- const blink::WebSize& scrollOffset,
- ScrollContainerId) {
- SkMatrix44 matrix;
- matrix.setTranslate(-scrollOffset.width, -scrollOffset.height, 0);
- appendTransformItem(matrix);
-}
-
-void WebDisplayItemListImpl::appendEndScrollItem() {
- appendEndTransformItem();
-}
-
-WebDisplayItemListImpl::~WebDisplayItemListImpl() {
-}
-
-} // namespace cc_blink
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/blink/web_external_bitmap_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698