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

Issue 554053: Added infrastructure to run gpu demos under Pepper3D. Created a Demo class th... (Closed)

Created:
10 years, 11 months ago by alokp
Modified:
9 years, 6 months ago
CC:
chromium-reviews, apatrick_chromium
Visibility:
Public.

Description

Added infrastructure to run gpu demos under Pepper3D. Created a Demo class that can be run as both standalone apps (exe) or pepper plugins (dll). Created entry points and framework classes for both platforms - exe and pepper. A demo application has three layers: 1. Entry point - standalone (main_exe.cc): Contains the main function for console applications. Instantiates and runs a window. - pepper (main_pepper.cc): Contains NPAPI entry points. Instantiates pepper plugin object. 2. Framework that hosts demo - standalone: Window - pepper: Plugin 3. Demo - One demo class for all platforms. This does all the rendering and event handling. BUG=26099 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=37082

Patch Set 1 #

Total comments: 63

Patch Set 2 : '' #

Total comments: 10

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 10

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+779 lines, -514 lines) Patch
D gpu/demos/app_framework/application.h View 1 2 3 4 5 1 chunk +0 lines, -68 lines 0 comments Download
D gpu/demos/app_framework/application.cc View 1 2 3 4 5 1 chunk +0 lines, -169 lines 0 comments Download
D gpu/demos/app_framework/platform.h View 1 2 3 4 5 1 chunk +0 lines, -23 lines 0 comments Download
M gpu/demos/demos.gyp View 1 2 3 4 5 1 chunk +52 lines, -58 lines 0 comments Download
A gpu/demos/framework/demo.h View 1 1 chunk +67 lines, -0 lines 0 comments Download
A gpu/demos/framework/demo.cc View 1 chunk +35 lines, -0 lines 0 comments Download
A gpu/demos/framework/demo_factory.h View 1 1 chunk +17 lines, -0 lines 0 comments Download
A gpu/demos/framework/main_exe.cc View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
A gpu/demos/framework/main_pepper.cc View 1 2 3 4 5 1 chunk +148 lines, -0 lines 0 comments Download
A + gpu/demos/framework/platform.h View 2 chunks +7 lines, -5 lines 0 comments Download
A gpu/demos/framework/plugin.h View 1 2 1 chunk +51 lines, -0 lines 0 comments Download
A gpu/demos/framework/plugin.cc View 1 2 1 chunk +147 lines, -0 lines 0 comments Download
A gpu/demos/framework/plugin.def View 1 chunk +4 lines, -0 lines 0 comments Download
A gpu/demos/framework/plugin.rc View 1 chunk +35 lines, -0 lines 0 comments Download
A + gpu/demos/framework/window.h View 1 2 3 4 1 chunk +21 lines, -50 lines 0 comments Download
A + gpu/demos/framework/window.cc View 1 2 6 chunks +91 lines, -91 lines 0 comments Download
M gpu/demos/gles2_book/example.h View 1 2 3 4 5 2 chunks +33 lines, -19 lines 0 comments Download
A gpu/demos/gles2_book/hello_triangle.cc View 1 2 1 chunk +35 lines, -0 lines 0 comments Download
D gpu/demos/hello_triangle/main.cc View 1 2 3 4 5 1 chunk +0 lines, -31 lines 0 comments Download
A gpu/demos/pepper_gpu_demo.html View 1 chunk +12 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
alokp
10 years, 11 months ago (2010-01-22 18:05:28 UTC) #1
alokp
Note that I have only included hello-triangle demo in the build. I will add other ...
10 years, 11 months ago (2010-01-22 18:11:43 UTC) #2
apatrick
http://codereview.chromium.org/554053/diff/1/15 File gpu/demos/framework/demo.h (right): http://codereview.chromium.org/554053/diff/1/15#newcode26 gpu/demos/framework/demo.h:26: virtual const TCHAR* Title() const = 0; This is ...
10 years, 11 months ago (2010-01-22 19:20:00 UTC) #3
alokp
http://codereview.chromium.org/554053/diff/1/15 File gpu/demos/framework/demo.h (right): http://codereview.chromium.org/554053/diff/1/15#newcode26 gpu/demos/framework/demo.h:26: virtual const TCHAR* Title() const = 0; changed to ...
10 years, 11 months ago (2010-01-22 20:46:06 UTC) #4
apatrick
http://codereview.chromium.org/554053/diff/1/8 File gpu/demos/framework/demo_factory.h (right): http://codereview.chromium.org/554053/diff/1/8#newcode13 gpu/demos/framework/demo_factory.h:13: extern Demo* CreateDemo(); Cool. http://codereview.chromium.org/554053/diff/1/11 File gpu/demos/framework/main_pepper.cc (right): http://codereview.chromium.org/554053/diff/1/11#newcode5 ...
10 years, 11 months ago (2010-01-22 21:49:42 UTC) #5
cpu_(ooo_6.6-7.5)
good job, some drive-by comments. http://codereview.chromium.org/554053/diff/42/6004 File gpu/demos/app_framework/application.cc (left): http://codereview.chromium.org/554053/diff/42/6004#oldcode4 gpu/demos/app_framework/application.cc:4: I think this file ...
10 years, 11 months ago (2010-01-22 22:23:05 UTC) #6
alokp
http://codereview.chromium.org/554053/diff/42/6004 File gpu/demos/app_framework/application.cc (left): http://codereview.chromium.org/554053/diff/42/6004#oldcode4 gpu/demos/app_framework/application.cc:4: this file has been moved to framework/window.cc. I will ...
10 years, 11 months ago (2010-01-22 22:30:43 UTC) #7
alokp
http://codereview.chromium.org/554053/diff/1/11 File gpu/demos/framework/main_pepper.cc (right): http://codereview.chromium.org/554053/diff/1/11#newcode5 gpu/demos/framework/main_pepper.cc:5: #include <stdio.h> already removed. the right side is the ...
10 years, 11 months ago (2010-01-23 03:54:04 UTC) #8
alokp
I believe I have addressed all comments. Please take a final look.
10 years, 11 months ago (2010-01-24 21:57:06 UTC) #9
cpu_(ooo_6.6-7.5)
OK on my comments. On 2010/01/24 21:57:06, alokp wrote: > I believe I have addressed ...
10 years, 11 months ago (2010-01-25 20:38:12 UTC) #10
apatrick
http://codereview.chromium.org/554053/diff/6058/6071 File gpu/demos/framework/main_exe.cc (right): http://codereview.chromium.org/554053/diff/6058/6071#newcode16 gpu/demos/framework/main_exe.cc:16: // the program termintaes. terminates http://codereview.chromium.org/554053/diff/6058/6068 File gpu/demos/framework/main_pepper.cc (right): ...
10 years, 11 months ago (2010-01-25 22:41:52 UTC) #11
alokp
http://codereview.chromium.org/554053/diff/6058/6071 File gpu/demos/framework/main_exe.cc (right): http://codereview.chromium.org/554053/diff/6058/6071#newcode16 gpu/demos/framework/main_exe.cc:16: // the program termintaes. On 2010/01/25 22:41:52, apatrick wrote: ...
10 years, 11 months ago (2010-01-25 23:39:27 UTC) #12
apatrick
http://codereview.chromium.org/554053/diff/6058/6068 File gpu/demos/framework/main_pepper.cc (right): http://codereview.chromium.org/554053/diff/6058/6068#newcode31 gpu/demos/framework/main_pepper.cc:31: instance->pdata = reinterpret_cast<void*>(plugin); I don't know if Chromium has ...
10 years, 11 months ago (2010-01-26 00:16:01 UTC) #13
alokp
Removed all unnecessary reinterpret_casts.
10 years, 11 months ago (2010-01-26 00:32:50 UTC) #14
apatrick
10 years, 11 months ago (2010-01-26 00:35:26 UTC) #15
LGTM

Powered by Google App Engine
This is Rietveld 408576698