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

Issue 6904026: Add and use gfx::ScopedNSGraphicsContextState (ui/gfx/scoped_ns_graphics_context_state_mac.h). (Closed)

Created:
9 years, 8 months ago by Robert Sesek
Modified:
9 years, 7 months ago
CC:
chromium-reviews, darin-cc_chromium.org, Aaron Boodman, pam+watch_chromium.org, Erik does not do reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

Add and use gfx::ScopedNSGraphicsContextState (ui/gfx/scoped_ns_graphics_context_state_mac.h). BUG=none TEST=covered by tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=83125

Patch Set 1 #

Total comments: 6

Patch Set 2 : Out-of-line and scoped_nsobject<> #

Patch Set 3 : Rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+152 lines, -120 lines) Patch
M chrome/browser/autocomplete/autocomplete_popup_view_mac.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_bar_toolbar_view.mm View 1 2 4 chunks +12 lines, -13 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/dock_icon.mm View 1 2 3 chunks +21 lines, -19 lines 0 comments Download
M chrome/browser/ui/cocoa/download/download_item_cell.mm View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/browser_action_button.mm View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/find_bar/find_bar_view.mm View 1 2 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/ui/cocoa/gradient_button_cell.mm View 1 2 7 chunks +23 lines, -25 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/content_setting_decoration.mm View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/ui/cocoa/location_bar/instant_opt_in_view.mm View 1 2 3 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/styled_text_field_cell.mm View 1 2 3 chunks +2 lines, -20 lines 0 comments Download
M chrome/browser/ui/cocoa/tabs/tab_view.mm View 1 2 7 chunks +13 lines, -13 lines 0 comments Download
M chrome/browser/ui/cocoa/wrench_menu/wrench_menu_button_cell.mm View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
A ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h View 1 2 1 chunk +30 lines, -0 lines 0 comments Download
A ui/gfx/scoped_ns_graphics_context_save_gstate_mac.mm View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M ui/ui_gfx.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Robert Sesek
I went through the CL a few times to make sure it looks correct, but ...
9 years, 8 months ago (2011-04-26 17:46:03 UTC) #1
Avi (use Gerrit)
http://codereview.chromium.org/6904026/diff/1/ui/gfx/scoped_ns_graphics_context_state_mac.h File ui/gfx/scoped_ns_graphics_context_state_mac.h (right): http://codereview.chromium.org/6904026/diff/1/ui/gfx/scoped_ns_graphics_context_state_mac.h#newcode34 ui/gfx/scoped_ns_graphics_context_state_mac.h:34: } // namespace gfx Can't you just do [NSGraphicsContext ...
9 years, 8 months ago (2011-04-26 17:50:29 UTC) #2
Robert Sesek
http://codereview.chromium.org/6904026/diff/1/ui/gfx/scoped_ns_graphics_context_state_mac.h File ui/gfx/scoped_ns_graphics_context_state_mac.h (right): http://codereview.chromium.org/6904026/diff/1/ui/gfx/scoped_ns_graphics_context_state_mac.h#newcode34 ui/gfx/scoped_ns_graphics_context_state_mac.h:34: } // namespace gfx On 2011/04/26 17:50:29, Avi wrote: ...
9 years, 8 months ago (2011-04-26 17:51:25 UTC) #3
Nico
LGTM with nits http://codereview.chromium.org/6904026/diff/1/chrome/browser/renderer_host/render_widget_host_view_mac.mm File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/6904026/diff/1/chrome/browser/renderer_host/render_widget_host_view_mac.mm#newcode420 chrome/browser/renderer_host/render_widget_host_view_mac.mm:420: gfx::ScopedNSGraphicsContextState scopedGState; hm, this line in ...
9 years, 8 months ago (2011-04-26 17:56:28 UTC) #4
Robert Sesek
http://codereview.chromium.org/6904026/diff/1/chrome/browser/renderer_host/render_widget_host_view_mac.mm File chrome/browser/renderer_host/render_widget_host_view_mac.mm (right): http://codereview.chromium.org/6904026/diff/1/chrome/browser/renderer_host/render_widget_host_view_mac.mm#newcode420 chrome/browser/renderer_host/render_widget_host_view_mac.mm:420: gfx::ScopedNSGraphicsContextState scopedGState; On 2011/04/26 17:56:28, Nico wrote: > hm, ...
9 years, 8 months ago (2011-04-26 18:50:52 UTC) #5
Nico
SLG On Tue, Apr 26, 2011 at 11:50 AM, <rsesek@chromium.org> wrote: > > http://codereview.chromium.org/6904026/diff/1/chrome/browser/renderer_host/render_widget_host_view_mac.mm > ...
9 years, 8 months ago (2011-04-26 20:02:18 UTC) #6
Robert Sesek
On 2011/04/26 20:02:18, Nico wrote: > SLG > > On Tue, Apr 26, 2011 at ...
9 years, 8 months ago (2011-04-26 20:23:13 UTC) #7
commit-bot: I haz the power
Try job failure for 6904026-6002 on mac: http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=24182
9 years, 8 months ago (2011-04-26 23:18:06 UTC) #8
commit-bot: I haz the power
9 years, 8 months ago (2011-04-27 06:27:35 UTC) #9
Change committed as 83125

Powered by Google App Engine
This is Rietveld 408576698