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

Issue 7530010: Added PPB_Graphics3D_Dev::Resize to let plugins resize the backing surface. (Closed)

Created:
9 years, 4 months ago by alokp
Modified:
9 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, piman+watch_chromium.org, jam, darin-cc_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Added PPB_Graphics3D_Dev::Resize to let plugins resize the backing surface. BUG=62383 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=94930

Patch Set 1 #

Total comments: 11

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -24 lines) Patch
M content/renderer/gpu/renderer_gl_context.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/pepper_platform_context_3d_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper_platform_context_3d_impl.cc View 1 2 chunks +27 lines, -12 lines 0 comments Download
M ppapi/c/dev/ppb_graphics_3d_dev.h View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
M ppapi/cpp/dev/graphics_3d_dev.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/cpp/dev/graphics_3d_dev.cc View 1 1 chunk +8 lines, -0 lines 0 comments Download
M ppapi/shared_impl/graphics_3d_impl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/shared_impl/graphics_3d_impl.cc View 1 1 chunk +9 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_graphics_3d_api.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/ppb_graphics_3d_thunk.cc View 1 2 chunks +8 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_context_3d_impl.cc View 1 1 chunk +13 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppb_graphics_3d_impl.cc View 2 chunks +1 line, -7 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
alokp
Also updated demos to exercise the new API here: http://codereview.chromium.org/7529009/
9 years, 4 months ago (2011-07-28 21:30:40 UTC) #1
apatrick_chromium
http://codereview.chromium.org/7530010/diff/1/ppapi/shared_impl/graphics_3d_impl.cc File ppapi/shared_impl/graphics_3d_impl.cc (right): http://codereview.chromium.org/7530010/diff/1/ppapi/shared_impl/graphics_3d_impl.cc#newcode41 ppapi/shared_impl/graphics_3d_impl.cc:41: // TODO(alokp): Check if resize succeeded and return appropriate ...
9 years, 4 months ago (2011-07-28 22:11:26 UTC) #2
alokp
http://codereview.chromium.org/7530010/diff/1/ppapi/shared_impl/graphics_3d_impl.cc File ppapi/shared_impl/graphics_3d_impl.cc (right): http://codereview.chromium.org/7530010/diff/1/ppapi/shared_impl/graphics_3d_impl.cc#newcode41 ppapi/shared_impl/graphics_3d_impl.cc:41: // TODO(alokp): Check if resize succeeded and return appropriate ...
9 years, 4 months ago (2011-07-28 22:40:12 UTC) #3
piman
http://codereview.chromium.org/7530010/diff/1/content/renderer/pepper_platform_context_3d_impl.cc File content/renderer/pepper_platform_context_3d_impl.cc (right): http://codereview.chromium.org/7530010/diff/1/content/renderer/pepper_platform_context_3d_impl.cc#newcode79 content/renderer/pepper_platform_context_3d_impl.cc:79: }; You could move this to PPB_Context3D_Impl http://codereview.chromium.org/7530010/diff/1/ppapi/c/dev/ppb_graphics_3d_dev.h File ...
9 years, 4 months ago (2011-07-28 23:35:06 UTC) #4
alokp
I also renamed Resize() to ResizeBuffers() to make it consistent with SwapBuffers() and also make ...
9 years, 4 months ago (2011-07-29 16:13:12 UTC) #5
piman
On Fri, Jul 29, 2011 at 9:13 AM, <alokp@chromium.org> wrote: > I also renamed Resize() ...
9 years, 4 months ago (2011-07-29 16:31:13 UTC) #6
alokp
> That seems like a good idea in general, and I like it, it makes ...
9 years, 4 months ago (2011-07-29 17:02:56 UTC) #7
alokp
Updated documentation for ResizeBuffers() and uploaded patch. PTAL.
9 years, 4 months ago (2011-07-29 17:03:34 UTC) #8
piman
On Fri, Jul 29, 2011 at 10:02 AM, <alokp@chromium.org> wrote: > That seems like a ...
9 years, 4 months ago (2011-07-29 17:17:23 UTC) #9
alokp
> If the user tries to resize to something crazy (e.g. 10k x 10k), it'll ...
9 years, 4 months ago (2011-07-29 17:43:01 UTC) #10
piman
On Fri, Jul 29, 2011 at 10:43 AM, <alokp@chromium.org> wrote: > > If the user ...
9 years, 4 months ago (2011-07-29 18:16:50 UTC) #11
alokp
> > If it's above the max size, it'll generate GL_INVALID_VALUE. If it's out of ...
9 years, 4 months ago (2011-07-29 20:02:51 UTC) #12
piman
On Fri, Jul 29, 2011 at 1:02 PM, <alokp@chromium.org> wrote: > > > If it's ...
9 years, 4 months ago (2011-07-29 20:24:03 UTC) #13
alokp
> The code in RenderBuffer::AllocateStorage/Texture::AllocateStorage eats the > GL error. It returns a bool > ...
9 years, 4 months ago (2011-07-29 21:45:49 UTC) #14
piman
On Fri, Jul 29, 2011 at 2:45 PM, <alokp@chromium.org> wrote: > > The code in ...
9 years, 4 months ago (2011-07-29 22:35:45 UTC) #15
alokp
> > Please file a bug for the remaining issue, and then LGTM. > > ...
9 years, 4 months ago (2011-07-29 22:51:24 UTC) #16
alokp
brettw: OWNERS approval needed for ppapi.
9 years, 4 months ago (2011-08-01 15:41:15 UTC) #17
brettw
9 years, 4 months ago (2011-08-01 16:24:54 UTC) #18
LGTM

Powered by Google App Engine
This is Rietveld 408576698