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

Unified Diff: cc/layers/layer_impl.h

Issue 1848613002: Extract subpixel offsets from composited layer transforms when possible. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.h
diff --git a/cc/layers/layer_impl.h b/cc/layers/layer_impl.h
index a7b6b69c50b3447cf58e0c95039e457d4ef6b280..4abc7aac2475e93b41eeebd939f704806f910c71 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -469,6 +469,7 @@ class CC_EXPORT LayerImpl {
bool double_sided() const { return double_sided_; }
void SetTransform(const gfx::Transform& transform);
+ void SetSubpixelOffset(const gfx::Vector2dF& subpixel_offset) { subpixel_offset_ = subpixel_offset; }
const gfx::Transform& transform() const { return transform_; }
bool TransformIsAnimating() const;
bool HasPotentiallyRunningTransformAnimation() const;
@@ -734,6 +735,8 @@ class CC_EXPORT LayerImpl {
int sorting_context_id_;
DrawMode current_draw_mode_;
+public:
+ gfx::Vector2dF subpixel_offset_;
private:
uint64_t element_id_;
@@ -766,6 +769,7 @@ class CC_EXPORT LayerImpl {
// If true, the layer or one of its descendants has a touch handler.
bool layer_or_descendant_has_touch_handler_;
+
DISALLOW_COPY_AND_ASSIGN(LayerImpl);
};
« no previous file with comments | « cc/layers/layer.cc ('k') | cc/layers/layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698