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

Unified Diff: cc/blink/web_layer_impl_fixed_bounds.h

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_layer_impl.cc ('k') | cc/blink/web_layer_impl_fixed_bounds.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_layer_impl_fixed_bounds.h
diff --git a/cc/blink/web_layer_impl_fixed_bounds.h b/cc/blink/web_layer_impl_fixed_bounds.h
deleted file mode 100644
index edfd4bbb5588c16fc240ff375bea40bfd06a0468..0000000000000000000000000000000000000000
--- a/cc/blink/web_layer_impl_fixed_bounds.h
+++ /dev/null
@@ -1,51 +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_LAYER_IMPL_FIXED_BOUNDS_H_
-#define CC_BLINK_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
-
-#include "cc/blink/web_layer_impl.h"
-#include "ui/gfx/geometry/size.h"
-#include "ui/gfx/transform.h"
-
-namespace cc_blink {
-
-// 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:
- CC_BLINK_EXPORT WebLayerImplFixedBounds();
- CC_BLINK_EXPORT explicit WebLayerImplFixedBounds(
- scoped_refptr<cc::Layer> layer);
- virtual ~WebLayerImplFixedBounds();
-
- // WebLayerImpl overrides.
- void invalidateRect(const blink::WebRect& rect) override;
- void setTransformOrigin(
- const blink::WebFloatPoint3D& transform_origin) override;
- void setBounds(const blink::WebSize& bounds) override;
- blink::WebSize bounds() const override;
- void setTransform(const SkMatrix44& transform) override;
- SkMatrix44 transform() const override;
-
- CC_BLINK_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 cc_blink
-
-#endif // CC_BLINK_WEB_LAYER_IMPL_FIXED_BOUNDS_H_
« no previous file with comments | « cc/blink/web_layer_impl.cc ('k') | cc/blink/web_layer_impl_fixed_bounds.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698