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

Issue 16605006: Clean up Pepper ImageData resource class. (Closed)

Created:
7 years, 6 months ago by bbudge
Modified:
7 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Clean up Pepper ImageData resource class. -This change introduces an abstract ImageData class, and two subclasses. -PlatformImageData allows access to the platform-specific canvas and handles. -SimpleImageData is platform independent, suitable for use in the NaCl proxy. -Also changes ImageData creation messages to use PP_ImageDataDesc instead of serializing to std::string. -Remove NaCl-isms in naming. BUG=230980 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205681

Patch Set 1 #

Patch Set 2 : Make naming more consistent. #

Patch Set 3 : Fix PDF. #

Patch Set 4 : Fix Linux, allow both kinds of ImageData on host side. #

Total comments: 10

Patch Set 5 : #

Total comments: 2

Patch Set 6 : Rebase. #

Patch Set 7 : Add NOTREACHED if creating PlatformImageData in NaCl. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -298 lines) Patch
M chrome/renderer/pepper/pepper_pdf_host.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_video_source_host.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/handle_converter.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/pdf_resource.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.h View 1 2 3 4 5 chunks +84 lines, -52 lines 0 comments Download
M ppapi/proxy/ppb_image_data_proxy.cc View 1 2 3 4 5 6 16 chunks +158 lines, -135 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.h View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M ppapi/proxy/resource_creation_proxy.cc View 1 2 3 4 5 1 chunk +4 lines, -13 lines 0 comments Download
M ppapi/proxy/video_source_resource.cc View 1 1 chunk +3 lines, -2 lines 0 comments Download
M ppapi/shared_impl/ppb_image_data_shared.h View 1 2 3 4 1 chunk +12 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_image_data_thunk.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/thunk/resource_creation_api.h View 1 2 3 4 5 2 chunks +2 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppb_image_data_impl.h View 1 2 3 4 4 chunks +13 lines, -21 lines 0 comments Download
M webkit/plugins/ppapi/ppb_image_data_impl.cc View 1 2 3 4 7 chunks +26 lines, -37 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.h View 1 2 3 4 5 1 chunk +6 lines, -8 lines 0 comments Download
M webkit/plugins/ppapi/resource_creation_impl.cc View 1 2 3 4 5 1 chunk +8 lines, -13 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
bbudge
The only potential pitfall is that the cache may mix up the two types of ...
7 years, 6 months ago (2013-06-07 22:52:08 UTC) #1
bbudge
+Justin for ppapi_messages.h
7 years, 6 months ago (2013-06-07 22:56:03 UTC) #2
bbudge
On 2013/06/07 22:56:03, bbudge1 wrote: > +Justin for ppapi_messages.h David and Justin, hold off on ...
7 years, 6 months ago (2013-06-07 23:01:06 UTC) #3
bbudge
Ready for review.
7 years, 6 months ago (2013-06-08 22:00:13 UTC) #4
dmichael (off chromium)
Good point about the image data cache. I think we should at least add some ...
7 years, 6 months ago (2013-06-10 18:07:29 UTC) #5
dmichael (off chromium)
(PS I should say thanks for doing this; it looks really nice overall. I should ...
7 years, 6 months ago (2013-06-10 18:11:18 UTC) #6
bbudge
Now that we have an enum to define the ImageData type, I added a type() ...
7 years, 6 months ago (2013-06-10 23:28:37 UTC) #7
dmichael (off chromium)
lgtm (looks great to me!), thanks! https://codereview.chromium.org/16605006/diff/49001/ppapi/proxy/ppb_image_data_proxy.cc File ppapi/proxy/ppb_image_data_proxy.cc (right): https://codereview.chromium.org/16605006/diff/49001/ppapi/proxy/ppb_image_data_proxy.cc#newcode525 ppapi/proxy/ppb_image_data_proxy.cc:525: #endif #else NOTREACHED(); ...
7 years, 6 months ago (2013-06-11 17:55:34 UTC) #8
bbudge
https://codereview.chromium.org/16605006/diff/49001/ppapi/proxy/ppb_image_data_proxy.cc File ppapi/proxy/ppb_image_data_proxy.cc (right): https://codereview.chromium.org/16605006/diff/49001/ppapi/proxy/ppb_image_data_proxy.cc#newcode525 ppapi/proxy/ppb_image_data_proxy.cc:525: #endif On 2013/06/11 17:55:34, dmichael wrote: > #else > ...
7 years, 6 months ago (2013-06-11 18:13:01 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/16605006/83001
7 years, 6 months ago (2013-06-11 18:13:35 UTC) #10
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=8358
7 years, 6 months ago (2013-06-11 18:25:31 UTC) #11
jschuh
The attack surface isn't changing, so lgtm. But do me a favor and file a ...
7 years, 6 months ago (2013-06-11 19:03:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/16605006/83001
7 years, 6 months ago (2013-06-11 20:06:18 UTC) #13
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=8391
7 years, 6 months ago (2013-06-11 20:17:59 UTC) #14
bbudge
https://code.google.com/p/chromium/issues/detail?id=180103 +raymes for OWNERS in content/renderer/pepper
7 years, 6 months ago (2013-06-11 20:26:12 UTC) #15
raymes
OWNERS rubberstamp for content/renderer/pepper On Tue, Jun 11, 2013 at 1:26 PM, <bbudge@chromium.org> wrote: > ...
7 years, 6 months ago (2013-06-11 20:31:57 UTC) #16
raymes
lgtm On Tue, Jun 11, 2013 at 1:31 PM, Raymes Khoury <raymes@chromium.org> wrote: > OWNERS ...
7 years, 6 months ago (2013-06-11 20:32:06 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bbudge@chromium.org/16605006/83001
7 years, 6 months ago (2013-06-11 20:34:46 UTC) #18
commit-bot: I haz the power
7 years, 6 months ago (2013-06-12 00:18:17 UTC) #19
Message was sent while issue was closed.
Change committed as 205681

Powered by Google App Engine
This is Rietveld 408576698