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

Issue 9562038: ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. (Closed)

Created:
8 years, 9 months ago by tfarina
Modified:
8 years, 9 months ago
CC:
chromium-reviews, Avi (use Gerrit), sadrul, nkostylev+watch_chromium.org, ben+watch_chromium.org, dhollowa+watch_chromium.org, ajwong+watch_chromium.org, jam, penghuang+watch_chromium.org, dcheng, joi+watch-content_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org, creis+watch_chromium.org, James Su, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org, Alexei Svitkine (slow)
Visibility:
Public.

Description

ui/gfx: Make gfx::Canvas inherit from gfx::CanvasSkia. The final goal is to merge these two classes into a single gfx::Canvas class. BUG=116572 R=ben@chromium.org,asvitkine@chromium.org TBR=ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=125735

Patch Set 1 #

Patch Set 2 : kill CanvasSkia #

Patch Set 3 : fix multiple definition issue #

Patch Set 4 : delete contents of canvas.h #

Patch Set 5 : comments #

Patch Set 6 : more fixes #

Total comments: 2

Patch Set 7 : #

Total comments: 5

Patch Set 8 : ben review #

Total comments: 6

Patch Set 9 : alexei review - add TODO comments and fix style issues in canvas_skia.h #

Patch Set 10 : rebase #

Patch Set 11 : first round of win fixes #

Patch Set 12 : second round of fixes #

Patch Set 13 : empty ctor #

Patch Set 14 : third round of fixes #

Patch Set 15 : one more win fix #

Patch Set 16 : more win fixes #

Patch Set 17 : more two win fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+293 lines, -358 lines) Patch
M ash/app_list/drop_shadow_label.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/login/rounded_rect_painter.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/download/download_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/panels/panel_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_popup_contents_view.cc View 1 2 3 4 5 6 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/autocomplete/autocomplete_result_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.h View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/autocomplete/touch_autocomplete_popup_contents_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/avatar_menu_button.cc View 1 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/browser_actions_container.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/create_application_shortcut_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/detachable_toolbar_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/dropdown_bar_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/browser_action_overflow_menu_controller.cc View 1 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/translate_infobar_base.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
chrome/browser/ui/views/location_bar/location_bar_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/notifications/balloon_view.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/base_tab.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/default_tab_drag_controller.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/dragged_tab_view.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/native_view_photobooth_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/tabs/tab_drag_controller2.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/tabs/tab_strip.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/extension_action.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/aura/demo/demo_main.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M ui/base/dragdrop/drag_utils.cc View 1 2 3 4 5 6 7 3 chunks +4 lines, -4 lines 0 comments Download
M ui/gfx/canvas.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -201 lines 0 comments Download
M ui/gfx/canvas.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +8 lines, -8 lines 0 comments Download
M ui/gfx/canvas_paint_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/canvas_skia.h View 1 2 3 4 5 6 7 8 5 chunks +193 lines, -67 lines 0 comments Download
M ui/gfx/canvas_skia.cc View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/canvas_skia_linux.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/gfx/canvas_skia_mac.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/canvas_skia_paint.h View 1 4 5 6 7 8 9 10 11 3 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/canvas_skia_win.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M ui/gfx/compositor/layer.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M ui/gfx/compositor/layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M ui/views/background.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/button_drag_utils.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/button/text_button.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/glow_hover_controller.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/label.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_item_view_views.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_item_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_scroll_view_container.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_separator_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/progress_bar.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/tabbed_pane/native_tabbed_pane_views.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/tabbed_pane/native_tabbed_pane_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/table/table_view_views.cc View 1 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view_text_utils.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/native_widget_win.h View 1 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/widget/native_widget_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M ui/views/widget/root_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M ui/views/window/dialog_client_view.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (0 generated)
tfarina
Does this make sense?
8 years, 9 months ago (2012-03-01 23:27:53 UTC) #1
Peter Kasting
The Canvas virtual methods that you're now falling back on seem to be marked with ...
8 years, 9 months ago (2012-03-01 23:30:01 UTC) #2
tfarina
On 2012/03/01 23:30:01, Peter Kasting wrote: > The Canvas virtual methods that you're now falling ...
8 years, 9 months ago (2012-03-01 23:33:11 UTC) #3
Ben Goodger (Google)
I didn't add this... can you ask asvitkine?
8 years, 9 months ago (2012-03-01 23:56:17 UTC) #4
tfarina
On 2012/03/01 23:56:17, Ben Goodger (Google) wrote: > I didn't add this... can you ask ...
8 years, 9 months ago (2012-03-02 00:02:33 UTC) #5
Peter Kasting
OK, Ben and I chatted and got things straightened out. The story is, canvas.h was ...
8 years, 9 months ago (2012-03-02 00:06:49 UTC) #6
tfarina
On 2012/03/02 00:06:49, Peter Kasting wrote: > OK, Ben and I chatted and got things ...
8 years, 9 months ago (2012-03-02 02:12:08 UTC) #7
Peter Kasting
Please update the change title & description. I'd prefer if Ben could review this as ...
8 years, 9 months ago (2012-03-02 02:16:03 UTC) #8
Ben Goodger (Google)
This CL would be easier to review if: you deleted the contents of canvas.h and ...
8 years, 9 months ago (2012-03-02 17:02:13 UTC) #9
tfarina
On 2012/03/02 17:02:13, Ben Goodger (Google) wrote: > This CL would be easier to review ...
8 years, 9 months ago (2012-03-02 19:35:05 UTC) #10
Ben Goodger (Google)
http://codereview.chromium.org/9562038/diff/9259/ash/app_list/app_list_item_view.h File ash/app_list/app_list_item_view.h (right): http://codereview.chromium.org/9562038/diff/9259/ash/app_list/app_list_item_view.h#newcode50 ash/app_list/app_list_item_view.h:50: virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; This is the change ...
8 years, 9 months ago (2012-03-02 20:35:10 UTC) #11
tfarina
http://codereview.chromium.org/9562038/diff/9259/ash/app_list/app_list_item_view.h File ash/app_list/app_list_item_view.h (right): http://codereview.chromium.org/9562038/diff/9259/ash/app_list/app_list_item_view.h#newcode50 ash/app_list/app_list_item_view.h:50: virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; On 2012/03/02 20:35:11, Ben ...
8 years, 9 months ago (2012-03-02 20:57:20 UTC) #12
tfarina
On 2012/03/02 20:57:20, tfarina wrote: > http://codereview.chromium.org/9562038/diff/9259/ash/app_list/app_list_item_view.h > File ash/app_list/app_list_item_view.h (right): > > http://codereview.chromium.org/9562038/diff/9259/ash/app_list/app_list_item_view.h#newcode50 > ...
8 years, 9 months ago (2012-03-02 21:19:10 UTC) #13
tfarina
On 2012/03/02 21:19:10, tfarina wrote: > On 2012/03/02 20:57:20, tfarina wrote: > > > http://codereview.chromium.org/9562038/diff/9259/ash/app_list/app_list_item_view.h ...
8 years, 9 months ago (2012-03-05 20:33:18 UTC) #14
asvitkine_google
On 2012/03/05 20:33:18, tfarina wrote: > On 2012/03/02 21:19:10, tfarina wrote: > > On 2012/03/02 ...
8 years, 9 months ago (2012-03-05 20:54:43 UTC) #15
tfarina
On 2012/03/05 20:54:43, asvitkine wrote: > > Ben, do we have another alternative? If not, ...
8 years, 9 months ago (2012-03-06 02:19:29 UTC) #16
Ben Goodger (Google)
http://codereview.chromium.org/9562038/diff/16001/ui/base/dragdrop/drag_utils.cc File ui/base/dragdrop/drag_utils.cc (right): http://codereview.chromium.org/9562038/diff/16001/ui/base/dragdrop/drag_utils.cc#newcode65 ui/base/dragdrop/drag_utils.cc:65: void SetDragImageOnDataObject(const gfx::CanvasSkia& canvas, ???? http://codereview.chromium.org/9562038/diff/16001/ui/base/dragdrop/drag_utils.h File ui/base/dragdrop/drag_utils.h (right): ...
8 years, 9 months ago (2012-03-06 15:46:57 UTC) #17
tfarina
https://chromiumcodereview.appspot.com/9562038/diff/16001/ui/base/dragdrop/drag_utils.cc File ui/base/dragdrop/drag_utils.cc (right): https://chromiumcodereview.appspot.com/9562038/diff/16001/ui/base/dragdrop/drag_utils.cc#newcode65 ui/base/dragdrop/drag_utils.cc:65: void SetDragImageOnDataObject(const gfx::CanvasSkia& canvas, On 2012/03/06 15:46:58, Ben Goodger ...
8 years, 9 months ago (2012-03-06 17:09:09 UTC) #18
Alexei Svitkine (slow)
Looks OK to me other than style issues in ui/gfx/canvas_skia.h that you've promised to fix. ...
8 years, 9 months ago (2012-03-06 17:44:50 UTC) #19
tfarina
https://chromiumcodereview.appspot.com/9562038/diff/21001/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://chromiumcodereview.appspot.com/9562038/diff/21001/ui/gfx/canvas.h#newcode14 ui/gfx/canvas.h:14: class UI_EXPORT Canvas : public CanvasSkia { On 2012/03/06 ...
8 years, 9 months ago (2012-03-06 18:05:29 UTC) #20
Alexei Svitkine (slow)
LGTM
8 years, 9 months ago (2012-03-06 18:09:21 UTC) #21
Alexei Svitkine (slow)
Please also mention in the CL description that the goal is to merge these two ...
8 years, 9 months ago (2012-03-09 00:07:15 UTC) #22
tfarina
8 years, 9 months ago (2012-03-09 00:09:35 UTC) #23
On 2012/03/09 00:07:15, Alexei Svitkine wrote:
> Please also mention in the CL description that the goal is to merge these two
> classes into a single gfx::Canvas class.

Done.

Powered by Google App Engine
This is Rietveld 408576698