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

Unified Diff: cc/trees/layer_tree_host.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux platforms! Created 6 years, 11 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/trees/damage_tracker.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index e66cd06cfcd770ecc1c672dfe01508b91099afa3..640a70f92c44864042f29e37d4f1336475a367cb 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -146,7 +146,8 @@ class CC_EXPORT LayerTreeHost {
// Composites and attempts to read back the result into the provided
// buffer. If it wasn't possible, e.g. due to context lost, will return
// false.
- bool CompositeAndReadback(void* pixels, gfx::Rect rect_in_device_viewport);
+ bool CompositeAndReadback(void* pixels,
+ const gfx::Rect& rect_in_device_viewport);
void FinishAllRendering();
@@ -172,7 +173,7 @@ class CC_EXPORT LayerTreeHost {
virtual void SetNeedsCommit();
virtual void SetNeedsFullTreeSync();
void SetNeedsRedraw();
- void SetNeedsRedrawRect(gfx::Rect damage_rect);
+ void SetNeedsRedrawRect(const gfx::Rect& damage_rect);
bool CommitRequested() const;
bool BeginMainFrameRequested() const;
« no previous file with comments | « cc/trees/damage_tracker.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698