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

Issue 147493011: Use base::ScopedTypeRef for CGL types (Closed)

Created:
6 years, 10 months ago by ccameron
Modified:
6 years, 10 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, joi+watch-content_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Use base::ScopedTypeRef for CGL types. Use gfx::ScopedCGLSetCurrentContext for setting the current context in the browser process. When calling CGLSetCurrentContext, the pre-existing code inconsitently did either of restoring the context, setting the context to NULL, or leaving the context set. This makes the behavior consistent. It also makes error checking pervasive. BUG=245900 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250399

Patch Set 1 #

Total comments: 1

Patch Set 2 : Rebase #

Total comments: 1

Patch Set 3 : Rebase on updated scope patch #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Patch Set 6 : Rebase again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -110 lines) Patch
M content/browser/renderer_host/compositing_iosurface_context_mac.h View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_context_mac.mm View 1 2 3 9 chunks +24 lines, -60 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_layer_mac.mm View 1 2 1 chunk +20 lines, -4 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 5 chunks +30 lines, -21 lines 0 comments Download
M content/browser/renderer_host/display_link_mac.h View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M content/browser/renderer_host/display_link_mac.cc View 1 2 3 2 chunks +29 lines, -16 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 4 chunks +7 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
ccameron
For illustration (though if discussion on the other topic has no controversy, then review as ...
6 years, 10 months ago (2014-02-07 01:11:29 UTC) #1
ccameron
Given that it looks like there's consensus on base::ScopedTypeRef, this is ready for review as ...
6 years, 10 months ago (2014-02-07 07:17:24 UTC) #2
Ken Russell (switch to Gerrit)
Looks like a good cleanup. LGTM once this compiles, has been tested locally, and runs ...
6 years, 10 months ago (2014-02-10 19:32:23 UTC) #3
ccameron
Thanks! (looks like my tryjob didn't pick up the prereq change)
6 years, 10 months ago (2014-02-10 19:57:55 UTC) #4
ccameron
Thanks! (looks like my tryjob didn't pick up the prereq change)
6 years, 10 months ago (2014-02-10 19:57:56 UTC) #5
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 10 months ago (2014-02-11 06:20:06 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/147493011/150001
6 years, 10 months ago (2014-02-11 06:20:11 UTC) #7
commit-bot: I haz the power
6 years, 10 months ago (2014-02-11 14:24:43 UTC) #8
Message was sent while issue was closed.
Change committed as 250399

Powered by Google App Engine
This is Rietveld 408576698