summaryrefslogtreecommitdiffstats
path: root/cc/blink
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2015-07-23 11:56:20 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-23 18:56:55 +0000
commit657fe70aae57676dd984dbdd69abd7f720ff5921 (patch)
tree4af22498a5bf88326527aeed55d03e1f7953b673 /cc/blink
parentf553cb3baec926ac32b65382be88896c9e81a6fa (diff)
downloadchromium_src-657fe70aae57676dd984dbdd69abd7f720ff5921.zip
chromium_src-657fe70aae57676dd984dbdd69abd7f720ff5921.tar.gz
chromium_src-657fe70aae57676dd984dbdd69abd7f720ff5921.tar.bz2
Remove unused class WebNinePatchLayerImpl.
Follow-up to https://codereview.chromium.org/1251953007/ BUG= CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1251413002 Cr-Commit-Position: refs/heads/master@{#340126}
Diffstat (limited to 'cc/blink')
-rw-r--r--cc/blink/BUILD.gn2
-rw-r--r--cc/blink/cc_blink.gyp2
-rw-r--r--cc/blink/web_compositor_support_impl.cc6
-rw-r--r--cc/blink/web_compositor_support_impl.h1
-rw-r--r--cc/blink/web_nine_patch_layer_impl.cc46
-rw-r--r--cc/blink/web_nine_patch_layer_impl.h37
6 files changed, 0 insertions, 94 deletions
diff --git a/cc/blink/BUILD.gn b/cc/blink/BUILD.gn
index c39498f..4ee8862 100644
--- a/cc/blink/BUILD.gn
+++ b/cc/blink/BUILD.gn
@@ -43,8 +43,6 @@ component("blink") {
"web_layer_impl.h",
"web_layer_impl_fixed_bounds.cc",
"web_layer_impl_fixed_bounds.h",
- "web_nine_patch_layer_impl.cc",
- "web_nine_patch_layer_impl.h",
"web_scroll_offset_animation_curve_impl.cc",
"web_scroll_offset_animation_curve_impl.h",
"web_scrollbar_layer_impl.cc",
diff --git a/cc/blink/cc_blink.gyp b/cc/blink/cc_blink.gyp
index c55213c..dc01cae 100644
--- a/cc/blink/cc_blink.gyp
+++ b/cc/blink/cc_blink.gyp
@@ -59,8 +59,6 @@
'web_layer_impl.h',
'web_layer_impl_fixed_bounds.cc',
'web_layer_impl_fixed_bounds.h',
- 'web_nine_patch_layer_impl.cc',
- 'web_nine_patch_layer_impl.h',
'web_scroll_offset_animation_curve_impl.cc',
'web_scroll_offset_animation_curve_impl.h',
'web_scrollbar_layer_impl.cc',
diff --git a/cc/blink/web_compositor_support_impl.cc b/cc/blink/web_compositor_support_impl.cc
index 13a868d..aabf7bf 100644
--- a/cc/blink/web_compositor_support_impl.cc
+++ b/cc/blink/web_compositor_support_impl.cc
@@ -17,7 +17,6 @@
#include "cc/blink/web_float_animation_curve_impl.h"
#include "cc/blink/web_image_layer_impl.h"
#include "cc/blink/web_layer_impl.h"
-#include "cc/blink/web_nine_patch_layer_impl.h"
#include "cc/blink/web_scroll_offset_animation_curve_impl.h"
#include "cc/blink/web_scrollbar_layer_impl.h"
#include "cc/blink/web_transform_animation_curve_impl.h"
@@ -38,7 +37,6 @@ using blink::WebFilterAnimationCurve;
using blink::WebFilterOperations;
using blink::WebFloatAnimationCurve;
using blink::WebImageLayer;
-using blink::WebNinePatchLayer;
using blink::WebLayer;
using blink::WebScrollbar;
using blink::WebScrollbarLayer;
@@ -74,10 +72,6 @@ blink::WebImageLayer* WebCompositorSupportImpl::createImageLayer() {
return new WebImageLayerImpl();
}
-blink::WebNinePatchLayer* WebCompositorSupportImpl::createNinePatchLayer() {
- return new WebNinePatchLayerImpl();
-}
-
WebScrollbarLayer* WebCompositorSupportImpl::createScrollbarLayer(
WebScrollbar* scrollbar,
WebScrollbarThemePainter painter,
diff --git a/cc/blink/web_compositor_support_impl.h b/cc/blink/web_compositor_support_impl.h
index 9899669..9ebe335 100644
--- a/cc/blink/web_compositor_support_impl.h
+++ b/cc/blink/web_compositor_support_impl.h
@@ -31,7 +31,6 @@ class CC_BLINK_EXPORT WebCompositorSupportImpl
virtual blink::WebExternalTextureLayer* createExternalTextureLayer(
blink::WebExternalTextureLayerClient* client);
virtual blink::WebImageLayer* createImageLayer();
- virtual blink::WebNinePatchLayer* createNinePatchLayer();
virtual blink::WebScrollbarLayer* createScrollbarLayer(
blink::WebScrollbar* scrollbar,
blink::WebScrollbarThemePainter painter,
diff --git a/cc/blink/web_nine_patch_layer_impl.cc b/cc/blink/web_nine_patch_layer_impl.cc
deleted file mode 100644
index 8dd9980..0000000
--- a/cc/blink/web_nine_patch_layer_impl.cc
+++ /dev/null
@@ -1,46 +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_nine_patch_layer_impl.h"
-
-#include "base/command_line.h"
-#include "cc/base/switches.h"
-#include "cc/blink/web_layer_impl.h"
-#include "cc/blink/web_layer_impl_fixed_bounds.h"
-#include "cc/layers/nine_patch_layer.h"
-#include "cc/layers/picture_image_layer.h"
-
-namespace cc_blink {
-
-WebNinePatchLayerImpl::WebNinePatchLayerImpl() {
- layer_.reset(new WebLayerImpl(
- cc::NinePatchLayer::Create(WebLayerImpl::LayerSettings())));
-}
-
-WebNinePatchLayerImpl::~WebNinePatchLayerImpl() {
-}
-
-blink::WebLayer* WebNinePatchLayerImpl::layer() {
- return layer_.get();
-}
-
-void WebNinePatchLayerImpl::setBitmap(const SkBitmap& bitmap) {
- cc::NinePatchLayer* nine_patch =
- static_cast<cc::NinePatchLayer*>(layer_->layer());
- nine_patch->SetBitmap(bitmap);
-}
-
-void WebNinePatchLayerImpl::setAperture(const blink::WebRect& aperture) {
- cc::NinePatchLayer* nine_patch =
- static_cast<cc::NinePatchLayer*>(layer_->layer());
- nine_patch->SetAperture(gfx::Rect(aperture));
-}
-
-void WebNinePatchLayerImpl::setBorder(const blink::WebRect& border) {
- cc::NinePatchLayer* nine_patch =
- static_cast<cc::NinePatchLayer*>(layer_->layer());
- nine_patch->SetBorder(gfx::Rect(border));
-}
-
-} // namespace cc_blink
diff --git a/cc/blink/web_nine_patch_layer_impl.h b/cc/blink/web_nine_patch_layer_impl.h
deleted file mode 100644
index cbb3966..0000000
--- a/cc/blink/web_nine_patch_layer_impl.h
+++ /dev/null
@@ -1,37 +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.
-
-#ifndef CC_BLINK_WEB_NINE_PATCH_LAYER_IMPL_H_
-#define CC_BLINK_WEB_NINE_PATCH_LAYER_IMPL_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "cc/blink/cc_blink_export.h"
-#include "third_party/WebKit/public/platform/WebNinePatchLayer.h"
-#include "third_party/skia/include/core/SkBitmap.h"
-
-namespace cc_blink {
-
-class WebLayerImpl;
-
-class WebNinePatchLayerImpl : public blink::WebNinePatchLayer {
- public:
- CC_BLINK_EXPORT WebNinePatchLayerImpl();
- virtual ~WebNinePatchLayerImpl();
-
- // blink::WebNinePatchLayer implementation.
- virtual blink::WebLayer* layer();
-
- virtual void setBitmap(const SkBitmap& bitmap);
- virtual void setAperture(const blink::WebRect& aperture);
- virtual void setBorder(const blink::WebRect& border);
-
- private:
- scoped_ptr<WebLayerImpl> layer_;
-
- DISALLOW_COPY_AND_ASSIGN(WebNinePatchLayerImpl);
-};
-
-} // namespace cc_blink
-
-#endif // CC_BLINK_WEB_NINE_PATCH_LAYER_IMPL_H_