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

Unified Diff: webkit/renderer/compositor_bindings/web_filter_operations_impl.cc

Issue 317163002: Moving compositor_bindings from webkit to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changing dependencies due to failing ios bots Created 6 years, 6 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
Index: webkit/renderer/compositor_bindings/web_filter_operations_impl.cc
diff --git a/webkit/renderer/compositor_bindings/web_filter_operations_impl.cc b/webkit/renderer/compositor_bindings/web_filter_operations_impl.cc
deleted file mode 100644
index 6fb35e656ca90a1d440984fe1c0e730d3e49dc96..0000000000000000000000000000000000000000
--- a/webkit/renderer/compositor_bindings/web_filter_operations_impl.cc
+++ /dev/null
@@ -1,93 +0,0 @@
-// Copyright 2013 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 "webkit/renderer/compositor_bindings/web_filter_operations_impl.h"
-
-#include "base/basictypes.h"
-#include "skia/ext/refptr.h"
-#include "third_party/WebKit/public/platform/WebColor.h"
-#include "third_party/WebKit/public/platform/WebPoint.h"
-#include "third_party/skia/include/core/SkScalar.h"
-
-namespace webkit {
-
-WebFilterOperationsImpl::WebFilterOperationsImpl() {}
-
-WebFilterOperationsImpl::~WebFilterOperationsImpl() {}
-
-const cc::FilterOperations& WebFilterOperationsImpl::AsFilterOperations()
- const {
- return filter_operations_;
-}
-
-void WebFilterOperationsImpl::appendGrayscaleFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateGrayscaleFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendSepiaFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateSepiaFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendSaturateFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateSaturateFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendHueRotateFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateHueRotateFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendInvertFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateInvertFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendBrightnessFilter(float amount) {
- filter_operations_.Append(
- cc::FilterOperation::CreateBrightnessFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendContrastFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateContrastFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendOpacityFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateOpacityFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendBlurFilter(float amount) {
- filter_operations_.Append(cc::FilterOperation::CreateBlurFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendDropShadowFilter(blink::WebPoint offset,
- float std_deviation,
- blink::WebColor color) {
- filter_operations_.Append(cc::FilterOperation::CreateDropShadowFilter(
- offset, std_deviation, color));
-}
-
-void WebFilterOperationsImpl::appendColorMatrixFilter(SkScalar matrix[20]) {
- filter_operations_.Append(
- cc::FilterOperation::CreateColorMatrixFilter(matrix));
-}
-
-void WebFilterOperationsImpl::appendZoomFilter(float amount, int inset) {
- filter_operations_.Append(
- cc::FilterOperation::CreateZoomFilter(amount, inset));
-}
-
-void WebFilterOperationsImpl::appendSaturatingBrightnessFilter(float amount) {
- filter_operations_.Append(
- cc::FilterOperation::CreateSaturatingBrightnessFilter(amount));
-}
-
-void WebFilterOperationsImpl::appendReferenceFilter(
- SkImageFilter* image_filter) {
- filter_operations_.Append(
- cc::FilterOperation::CreateReferenceFilter(skia::SharePtr(image_filter)));
-}
-
-void WebFilterOperationsImpl::clear() {
- filter_operations_.Clear();
-}
-
-} // namespace webkit

Powered by Google App Engine
This is Rietveld 408576698