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

Unified Diff: ui/compositor/paint_context.h

Issue 1064103002: ui: Make compositor unittests access the canvas through PaintRecorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 | « ui/compositor/layer_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/paint_context.h
diff --git a/ui/compositor/paint_context.h b/ui/compositor/paint_context.h
index 0960ab5478f6336e32925cf1659f396c9e007de9..914f9a9f04ca3ac3393b6cc280af8c0510827173 100644
--- a/ui/compositor/paint_context.h
+++ b/ui/compositor/paint_context.h
@@ -67,6 +67,8 @@ class PaintContext {
const gfx::Vector2d& PaintOffset() const { return offset_; }
#endif
+ const gfx::Rect& InvalidationForTesting() const { return invalidation_; }
sadrul 2015/04/07 19:05:12 In a number of components, we expose such things t
danakj 2015/04/07 20:09:35 FWIW Presubmit makes an error if you use a method
+
private:
// The PaintRecorder needs access to the internal canvas and friends, but we
// don't want to expose them on this class so that people must go through the
« no previous file with comments | « ui/compositor/layer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698