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

Unified Diff: ui/compositor/layer.h

Issue 2286123002: ui: Remove unused Layer API. (Closed)
Patch Set: Created 4 years, 4 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 | « no previous file | 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 8b9092b4df7ed1b85b12a6f0685e29becf778c07..27743eca83d610e127a320100cf1ce098a5ae3fa 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -281,21 +281,6 @@ class COMPOSITOR_EXPORT Layer
void SetTextureFlipped(bool flipped);
bool TextureFlipped() const;
- // The alpha value applied to the whole texture. The effective value of each
- // pixel is computed as:
- // pixel.a = pixel.a * alpha.
- // Note: This is different from SetOpacity() as it only applies to the
- // texture and child layers are unaffected.
- // TODO(reveman): Remove once components/exo code is using SetShowSurface.
- // crbug.com/610086
- void SetTextureAlpha(float alpha);
-
- // The texture crop rectangle to be used. Empty rectangle means no cropping.
- void SetTextureCrop(const gfx::RectF& crop);
-
- // The texture scale to be used. Defaults to no scaling.
- void SetTextureScale(float x_scale, float y_scale);
-
// Begins showing content from a surface with a particular id.
void SetShowSurface(const cc::SurfaceId& surface_id,
const cc::SurfaceLayer::SatisfyCallback& satisfy_callback,
@@ -534,13 +519,6 @@ class COMPOSITOR_EXPORT Layer
// or SetTextureMailbox was called.
gfx::Size frame_size_in_dip_;
- // The texture crop rectangle.
- gfx::RectF texture_crop_;
-
- // The texture scale.
- float texture_x_scale_;
- float texture_y_scale_;
-
DISALLOW_COPY_AND_ASSIGN(Layer);
};
« no previous file with comments | « no previous file | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698