| Index: webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h
|
| diff --git a/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h b/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h
|
| deleted file mode 100644
|
| index f338cdead7a6d64a7346f4212becd364c6f3ddf3..0000000000000000000000000000000000000000
|
| --- a/webkit/renderer/compositor_bindings/web_layer_impl_fixed_bounds.h
|
| +++ /dev/null
|
| @@ -1,50 +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.
|
| -
|
| -#ifndef WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
|
| -#define WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
|
| -
|
| -#include "ui/gfx/size.h"
|
| -#include "ui/gfx/transform.h"
|
| -#include "webkit/renderer/compositor_bindings/web_layer_impl.h"
|
| -
|
| -namespace webkit {
|
| -
|
| -// A special implementation of WebLayerImpl for layers that its contents
|
| -// need to be automatically scaled when the bounds changes. The compositor
|
| -// can efficiently handle the bounds change of such layers if the bounds
|
| -// is fixed to a given value and the change of bounds are converted to
|
| -// transformation scales.
|
| -class WebLayerImplFixedBounds : public WebLayerImpl {
|
| - public:
|
| - WEBKIT_COMPOSITOR_BINDINGS_EXPORT WebLayerImplFixedBounds();
|
| - WEBKIT_COMPOSITOR_BINDINGS_EXPORT explicit WebLayerImplFixedBounds(
|
| - scoped_refptr<cc::Layer>);
|
| - virtual ~WebLayerImplFixedBounds();
|
| -
|
| - // WebLayerImpl overrides.
|
| - virtual void invalidateRect(const blink::WebFloatRect& rect);
|
| - virtual void setAnchorPoint(const blink::WebFloatPoint& anchor_point);
|
| - virtual void setBounds(const blink::WebSize& bounds);
|
| - virtual blink::WebSize bounds() const;
|
| - virtual void setTransform(const SkMatrix44& transform);
|
| - virtual SkMatrix44 transform() const;
|
| -
|
| - WEBKIT_COMPOSITOR_BINDINGS_EXPORT void SetFixedBounds(gfx::Size bounds);
|
| -
|
| - protected:
|
| - void SetTransformInternal(const gfx::Transform& transform);
|
| - void UpdateLayerBoundsAndTransform();
|
| -
|
| - gfx::Transform original_transform_;
|
| - gfx::Size original_bounds_;
|
| - gfx::Size fixed_bounds_;
|
| -
|
| - private:
|
| - DISALLOW_COPY_AND_ASSIGN(WebLayerImplFixedBounds);
|
| -};
|
| -
|
| -} // namespace webkit
|
| -
|
| -#endif // WEBKIT_RENDERER_COMPOSITOR_BINDINGS_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
|
|
|