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

Unified Diff: ui/compositor/layer.h

Issue 12816002: Make zoom filter independent of the layer size. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « content/common/cc_messages.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index e416e80dbb0b059274135d92b4083fcc35a9ddc5..80de3ccff586696168f88013fadc3e7f49eab64f 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -180,11 +180,9 @@ class COMPOSITOR_EXPORT Layer
// grayscale otherwise.
float GetTargetGrayscale() const;
- // Zoom the background by a factor of |zoom|. The upper left corner of the
- // zoomed area is offset from the top left corner of the layer by |x_offset|
- // and |y_offset|. The effect is blended along the edge across |inset|
- // pixels.
- void SetBackgroundZoom(float x_offset, float y_offset, float zoom, int inset);
+ // Zoom the background by a factor of |zoom|. The effect is blended along the
+ // edge across |inset| pixels.
+ void SetBackgroundZoom(float zoom, int inset);
// Invert the layer.
bool layer_inverted() const { return layer_inverted_; }
@@ -421,11 +419,6 @@ class COMPOSITOR_EXPORT Layer
// while attached to the main layer before the main layer is deleted.
Layer* layer_mask_back_link_;
- // When the layer is zoomed, this is the offset to the upper left corner of
- // the area in the layer that is zoomed.
- float zoom_x_offset_;
- float zoom_y_offset_;
-
// The zoom factor to scale the layer by. Zooming is disabled when this is
// set to 1.
float zoom_;
« no previous file with comments | « content/common/cc_messages.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698