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

Issue 61813003: Allow PPB_ImageData_Impl to be created in a way that is compatible with unittests (Closed)

Created:
7 years, 1 month ago by raymes
Modified:
7 years, 1 month ago
Reviewers:
bbudge
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Allow PPB_ImageData_Impl to be created in a way that is compatible with unittests On some platforms, PPB_ImageData_Impl needs to send a message to the browser to create its transport dib. For unittests, this doesn't work and there is no sandbox so the transport dib can be created directly. This adds a construction flag to PPB_ImageData_Impl which allows it to be created in a way that works in unittests. BUG= R=bbudge@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=235071

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+99 lines, -48 lines) Patch
M content/renderer/pepper/content_renderer_pepper_host_factory.cc View 1 2 3 4 2 chunks +5 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host.h View 1 2 3 4 2 chunks +11 lines, -6 lines 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host.cc View 1 2 3 4 2 chunks +15 lines, -9 lines 0 comments Download
M content/renderer/pepper/ppb_image_data_impl.h View 1 2 3 chunks +10 lines, -1 line 0 comments Download
M content/renderer/pepper/ppb_image_data_impl.cc View 1 2 3 5 chunks +58 lines, -31 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
raymes
7 years, 1 month ago (2013-11-11 05:21:11 UTC) #1
bbudge
https://codereview.chromium.org/61813003/diff/1/content/renderer/pepper/ppb_image_data_impl.cc File content/renderer/pepper/ppb_image_data_impl.cc (right): https://codereview.chromium.org/61813003/diff/1/content/renderer/pepper/ppb_image_data_impl.cc#newcode30 content/renderer/pepper/ppb_image_data_impl.cc:30: bool is_browser_allocated) Couldn't we just call IsBrowserAllocated on the ...
7 years, 1 month ago (2013-11-11 12:24:06 UTC) #2
bbudge
https://codereview.chromium.org/61813003/diff/1/content/renderer/pepper/ppb_image_data_impl.cc File content/renderer/pepper/ppb_image_data_impl.cc (right): https://codereview.chromium.org/61813003/diff/1/content/renderer/pepper/ppb_image_data_impl.cc#newcode30 content/renderer/pepper/ppb_image_data_impl.cc:30: bool is_browser_allocated) On 2013/11/11 12:24:06, bbudge1 wrote: > Couldn't ...
7 years, 1 month ago (2013-11-11 19:09:14 UTC) #3
bbudge
I like how you reduce the platform specific code and pass the backing store in ...
7 years, 1 month ago (2013-11-11 19:25:57 UTC) #4
raymes
I wanted to avoid adding another enum option because I only really want to change ...
7 years, 1 month ago (2013-11-12 02:30:59 UTC) #5
bbudge
I like it. LGTM Thanks!
7 years, 1 month ago (2013-11-12 14:40:49 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/61813003/100001
7 years, 1 month ago (2013-11-12 23:36:49 UTC) #7
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-13 01:54:38 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/61813003/290002
7 years, 1 month ago (2013-11-14 00:50:07 UTC) #9
commit-bot: I haz the power
Retried try job too often on mac for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=101644
7 years, 1 month ago (2013-11-14 02:04:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/61813003/290002
7 years, 1 month ago (2013-11-14 02:11:14 UTC) #11
commit-bot: I haz the power
Retried try job too often on mac for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac&number=101699
7 years, 1 month ago (2013-11-14 03:08:18 UTC) #12
raymes
7 years, 1 month ago (2013-11-14 06:45:57 UTC) #13
Message was sent while issue was closed.
Committed patchset #5 manually as r235071 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698