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

Unified Diff: cc/layers/layer_impl.h

Issue 647253002: cc: Stop converting update rect from int to float to int. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: displayrectint: ccperftests Created 6 years, 2 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 02b00d8738a839ede31ecdc81e2582a6d0fd5358..b7f382227fe58b48f0e957a5d6ed45012077c29f 100644
--- a/cc/layers/layer_impl.h
+++ b/cc/layers/layer_impl.h
@@ -471,9 +471,8 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
bool transform_is_invertible() const { return transform_is_invertible_; }
// Note this rect is in layer space (not content space).
- void SetUpdateRect(const gfx::RectF& update_rect);
-
- const gfx::RectF& update_rect() const { return update_rect_; }
+ void SetUpdateRect(const gfx::Rect& update_rect);
+ gfx::Rect update_rect() const { return update_rect_; }
void AddDamageRect(const gfx::RectF& damage_rect);
@@ -688,7 +687,7 @@ class CC_EXPORT LayerImpl : public LayerAnimationValueObserver,
// Rect indicating what was repainted/updated during update.
// Note that plugin layers bypass this and leave it empty.
// Uses layer (not content) space.
- gfx::RectF update_rect_;
+ gfx::Rect update_rect_;
// This rect is in layer space.
gfx::RectF damage_rect_;
« 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