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

Issue 545052: Implemented PGL library, an EGL like API for Pepper. Updated Pepper test plug... (Closed)

Created:
10 years, 11 months ago by apatrick_chromium
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), pam+watch_chromium.org, apatrick_chromium
Visibility:
Public.

Description

Implemented PGL library, an EGL like API for Pepper. Updated Pepper test plugin to use it. TEST=none yet BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=36268

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -332 lines) Patch
M gpu/gpu.gyp View 1 1 chunk +24 lines, -0 lines 0 comments Download
A + gpu/pgl/command_buffer_pepper.h View 3 chunks +8 lines, -10 lines 0 comments Download
A + gpu/pgl/command_buffer_pepper.cc View 6 chunks +23 lines, -45 lines 0 comments Download
A gpu/pgl/pgl.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A gpu/pgl/pgl.cc View 1 1 chunk +161 lines, -0 lines 0 comments Download
D webkit/tools/pepper_test_plugin/command_buffer_pepper.h View 1 1 chunk +0 lines, -51 lines 0 comments Download
D webkit/tools/pepper_test_plugin/command_buffer_pepper.cc View 1 1 chunk +0 lines, -175 lines 0 comments Download
M webkit/tools/pepper_test_plugin/pepper_test_plugin.gyp View 1 2 chunks +1 line, -2 lines 0 comments Download
M webkit/tools/pepper_test_plugin/plugin_object.h View 1 2 chunks +5 lines, -7 lines 0 comments Download
M webkit/tools/pepper_test_plugin/plugin_object.cc View 1 6 chunks +25 lines, -42 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
apatrick_chromium
10 years, 11 months ago (2010-01-14 02:00:25 UTC) #1
alokp
Wow Al - you rock! A couple of things: 1. I think Nicholas and Gregg ...
10 years, 11 months ago (2010-01-14 02:35:22 UTC) #2
sehr (please use chromium)
On 2010/01/14 02:35:22, alokp wrote: > Wow Al - you rock! > > A couple ...
10 years, 11 months ago (2010-01-14 04:21:56 UTC) #3
apatrick_chromium
+nfullagar +gman as requested. There are typos and indentation errors in pgl.cc. I'll get to ...
10 years, 11 months ago (2010-01-14 04:49:52 UTC) #4
alokp
lgtm http://codereview.chromium.org/545052/diff/1/6 File webkit/tools/pepper_test_plugin/plugin_object.h (right): http://codereview.chromium.org/545052/diff/1/6#newcode33 webkit/tools/pepper_test_plugin/plugin_object.h:33: #include "gpu/command_buffer/client/gles2_implementation.h" do you still need to include ...
10 years, 11 months ago (2010-01-14 04:59:25 UTC) #5
gregoryd
LGTM http://codereview.chromium.org/545052/diff/1/8 File gpu/pgl/pgl.cc (right): http://codereview.chromium.org/545052/diff/1/8#newcode12 gpu/pgl/pgl.cc:12: #define THREAD_LOCAL __declspec(thread) This is probably already defined ...
10 years, 11 months ago (2010-01-14 07:45:12 UTC) #6
nfullagar
http://codereview.chromium.org/545052/diff/1/8 File gpu/pgl/pgl.cc (right): http://codereview.chromium.org/545052/diff/1/8#newcode122 gpu/pgl/pgl.cc:122: gles2_implementation_->SwapBuffers(); Apologies if this has been done already else ...
10 years, 11 months ago (2010-01-14 17:36:55 UTC) #7
apatrick_chromium
10 years, 11 months ago (2010-01-14 19:39:44 UTC) #8
http://codereview.chromium.org/545052/diff/1/8
File gpu/pgl/pgl.cc (right):

http://codereview.chromium.org/545052/diff/1/8#newcode12
gpu/pgl/pgl.cc:12: #define THREAD_LOCAL __declspec(thread)
On 2010/01/14 07:45:12, gregoryd wrote:
> This is probably already defined in base or somewhere else

This needs to be compiled into nexes so we've avoided using anything in base.

http://codereview.chromium.org/545052/diff/1/8#newcode122
gpu/pgl/pgl.cc:122: gles2_implementation_->SwapBuffers();
On 2010/01/14 17:36:55, nfullagar wrote:
> Apologies if this has been done already else where in implementation.  I found
I
> needed to also make a call to gles2_implementation_->WaitForCmd(). 
Otherwise,
> simple GL renderings (==small amount of space in the cmd buffer, but could
still
> be fill rate intense) could cause the app to start rendering 10s or 100s of
> frames in advance of what was being presented to the screen, esp if vsync is
> enabled.  This can make menu navigation challenging, especially when the
mouse
> cursor is rendered with gl commands.
> 
> There are several places this could go, ie. glFlush(), glFinish(),
> pglSwapBuffers(), SwapBuffers().  For pglSwapBuffers(), perhaps have this be
an
> option in the graphics 3D context during initialization?
> 
> If vsync is enabled, not only should pglSwapBuffers wait for the commands to
> flush, it should probably wait for the glSwapBuffers to complete on the
server
> side, so an application is governed by vsync (or whatever the virtual eq. is
on
> lcd displays)
> 
> 

I think gman fixed this. If it turns out otherwise, I'll fix it.

http://codereview.chromium.org/545052/diff/1/6
File webkit/tools/pepper_test_plugin/plugin_object.h (right):

http://codereview.chromium.org/545052/diff/1/6#newcode33
webkit/tools/pepper_test_plugin/plugin_object.h:33: #include
"gpu/command_buffer/client/gles2_implementation.h"
On 2010/01/14 04:59:25, alokp wrote:
> do you still need to include gles2_implementation.h

Done.

Powered by Google App Engine
This is Rietveld 408576698