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

Unified Diff: ui/gfx/paint_throbber.h

Issue 1381203002: An energy usage monitor for Mac, and some layer-backed throbber experiments Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the AA thing, but it is still a bit weird Created 5 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 | « chrome/test/base/testing_profile.cc ('k') | ui/gfx/paint_throbber.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/paint_throbber.h
diff --git a/ui/gfx/paint_throbber.h b/ui/gfx/paint_throbber.h
index c4adab5dd2f35b5a6e078c7842655e76e7b06da1..1690b37b7c721866d6f1176be687741492920fcf 100644
--- a/ui/gfx/paint_throbber.h
+++ b/ui/gfx/paint_throbber.h
@@ -28,6 +28,12 @@ struct GFX_EXPORT ThrobberWaitingState {
base::TimeDelta arc_time_offset;
};
+GFX_EXPORT void PaintThrobberArc(Canvas* canvas,
+ const Rect& bounds,
+ SkColor color,
+ SkScalar start_angle,
+ SkScalar sweep);
+
// Paints a single frame of the throbber in the "spinning", aka Material, state.
GFX_EXPORT void PaintThrobberSpinning(Canvas* canvas,
const Rect& bounds, SkColor color, const base::TimeDelta& elapsed_time);
@@ -35,7 +41,10 @@ GFX_EXPORT void PaintThrobberSpinning(Canvas* canvas,
// Paints a throbber in the "waiting" state. Used when waiting on a network
// response, for example.
GFX_EXPORT void PaintThrobberWaiting(Canvas* canvas,
- const Rect& bounds, SkColor color, const base::TimeDelta& elapsed_time);
+ const Rect& bounds,
+ SkColor color,
+ const base::TimeDelta& elapsed_time,
+ bool anti_alias);
// Paint a throbber in the "spinning" state, smoothly transitioning from a
// previous "waiting" state described by |waiting_state|, which is an in-out
« no previous file with comments | « chrome/test/base/testing_profile.cc ('k') | ui/gfx/paint_throbber.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698