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

Unified Diff: chrome/browser/ui/views/tabs/tab.h

Issue 2803583003: ui: Remove use of bitmaps when painting tab backgrounds. (Closed)
Patch Set: tabbackground: pointers Created 3 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 | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/tabs/tab.h
diff --git a/chrome/browser/ui/views/tabs/tab.h b/chrome/browser/ui/views/tabs/tab.h
index 7b7bc644e81e50785ca15f69330a514f3126bb59..0469d0f2856b62d260760f391204dd5f1d09bc5a 100644
--- a/chrome/browser/ui/views/tabs/tab.h
+++ b/chrome/browser/ui/views/tabs/tab.h
@@ -235,11 +235,19 @@ class Tab : public gfx::AnimationDelegate,
// Paints a tab background using the image defined by |fill_id| at the
// provided offset. If |fill_id| is 0, it will fall back to using the solid
// color defined by the theme provider and ignore the offset.
- void PaintTabBackgroundUsingFillId(gfx::Canvas* fill_canvas,
- gfx::Canvas* stroke_canvas,
- bool is_active,
- int fill_id,
- int y_offset);
+ void PaintTabBackground(gfx::Canvas* canvas,
+ bool active,
Peter Kasting 2017/04/06 00:52:11 Nit: For naming consistency, make this and the arg
danakj 2017/04/06 17:05:28 I changed it because is_active is incorrect. This
Peter Kasting 2017/04/06 18:49:45 OK; can we name the arg to the fill function |acti
danakj 2017/04/06 20:08:52 Yep, the .cc has it as |active| I just missed it h
+ int fill_id,
+ int y_offset,
+ const gfx::Path* clip);
+ void PaintTabBackgroundFill(gfx::Canvas* canvas,
Peter Kasting 2017/04/06 00:52:11 Nit: Maybe separate these two from the function ab
danakj 2017/04/06 17:05:28 Done.
+ const gfx::Path& fill_path,
+ bool is_active,
+ int fill_id,
+ int y_offset);
+ void PaintTabBackgroundStroke(gfx::Canvas* canvas,
+ const gfx::Path& fill_path,
+ bool active);
// Paints the pinned tab title changed indicator and |favicon_|. |favicon_|
// may be null. |favicon_draw_bounds| is |favicon_bounds_| adjusted for rtl
« no previous file with comments | « no previous file | chrome/browser/ui/views/tabs/tab.cc » ('j') | chrome/browser/ui/views/tabs/tab.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698