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

Issue 11571016: Only unbind a Graphics2D on destruction when we're actually bound. (Closed)

Created:
8 years ago by brettw
Modified:
8 years ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Only unbind a Graphics2D on destruction when we're actually bound. Previously if you made a new Graphics2D, bound it, and deleted the previous one, the first one would blindly unbind the current graphics 2D context in its destructor, which leaves you with a blank page. BUG=164302 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=173181

Patch Set 1 #

Total comments: 1

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -5 lines) Patch
M content/renderer/pepper/pepper_graphics_2d_host.cc View 1 1 chunk +5 lines, -5 lines 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_2d_impl.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
brettw
8 years ago (2012-12-13 23:41:21 UTC) #1
Vitaly Buka (NO REVIEWS)
lgtm I have tested patch and it resolved the issue.
8 years ago (2012-12-13 23:44:30 UTC) #2
bbudge
8 years ago (2012-12-14 00:24:26 UTC) #3
lgtm

https://codereview.chromium.org/11571016/diff/1/content/renderer/pepper/peppe...
File content/renderer/pepper/pepper_graphics_2d_host.cc (right):

https://codereview.chromium.org/11571016/diff/1/content/renderer/pepper/peppe...
content/renderer/pepper/pepper_graphics_2d_host.cc:45: // Unbind from the
instance when destoryed if we're still bound.
sp destroyed

Powered by Google App Engine
This is Rietveld 408576698