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

Unified Diff: cc/layers/layer.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/delegated_renderer_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index ed0d0cdf76b3416ff1c12367f6f1f03c64176536..dd41669729d0fba88893d62c6e576c52aca6e0be 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -124,8 +124,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
Layer* mask_layer() { return mask_layer_.get(); }
const Layer* mask_layer() const { return mask_layer_.get(); }
- virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect);
- void SetNeedsDisplay() { SetNeedsDisplayRect(gfx::RectF(bounds())); }
+ virtual void SetNeedsDisplayRect(const gfx::Rect& dirty_rect);
+ void SetNeedsDisplay() { SetNeedsDisplayRect(gfx::Rect(bounds())); }
void SetOpacity(float opacity);
float opacity() const { return opacity_; }
@@ -422,7 +422,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual ScrollbarLayerInterface* ToScrollbarLayer();
- gfx::Rect LayerRectToContentRect(const gfx::RectF& layer_rect) const;
+ gfx::Rect LayerRectToContentRect(const gfx::Rect& layer_rect) const;
virtual skia::RefPtr<SkPicture> GetPicture() const;
@@ -430,7 +430,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl);
bool NeedsDisplayForTesting() const { return !update_rect_.IsEmpty(); }
- void ResetNeedsDisplayForTesting() { update_rect_ = gfx::RectF(); }
+ void ResetNeedsDisplayForTesting() { update_rect_ = gfx::Rect(); }
RenderingStatsInstrumentation* rendering_stats_instrumentation() const;
@@ -524,7 +524,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
// outside the compositor's control (i.e. plugin layers), this information
// is not available and the update rect will remain empty.
// Note this rect is in layer space (not content space).
- gfx::RectF update_rect_;
+ gfx::Rect update_rect_;
scoped_refptr<Layer> mask_layer_;
« no previous file with comments | « cc/layers/delegated_renderer_layer_impl.cc ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698