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

Issue 234001: GPUProcessor uses O3D command buffer service to render to a window.... (Closed)

Created:
11 years, 2 months ago by apatrick
Modified:
9 years, 7 months ago
Reviewers:
gman1
CC:
chromium-reviews_googlegroups.com, tim (not reviewing), Paweł Hajdan Jr.
Visibility:
Public.

Description

GPUProcessor uses O3D command buffer service to render to a window. Added libraries that contain a subset of the O3D command buffer code independent on NaCl. Extracted Upcall interface from CommandBufferEngine. Now this works in JavaScript to clear the GPU plugin element to a random color: // BEGIN_FRAME sharedMemory.setInt32(putOffset++, 0x00000201); // CLEAR sharedMemory.setInt32(putOffset++, 0x00000408); sharedMemory.setInt32(putOffset++, 7); sharedMemory.setFloat(putOffset++, Math.random()); sharedMemory.setFloat(putOffset++, Math.random()); sharedMemory.setFloat(putOffset++, Math.random()); sharedMemory.setFloat(putOffset++, 1); sharedMemory.setFloat(putOffset++, 0.5); sharedMemory.setInt32(putOffset++, 0); // END_FRAME sharedMemory.setInt32(putOffset++, 0x00000301); TEST=none BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=27098

Patch Set 1 #

Total comments: 4

Patch Set 2 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+680 lines, -212 lines) Patch
M o3d/command_buffer/service/cross/cmd_buffer_engine.h View 1 chunk +27 lines, -1 line 0 comments Download
M o3d/command_buffer/service/cross/gapi_decoder.h View 3 chunks +3 lines, -3 lines 0 comments Download
M o3d/command_buffer/service/win/d3d9/gapi_d3d9.h View 1 chunk +1 line, -0 lines 0 comments Download
M o3d/gpu_plugin/command_buffer.h View 1 3 chunks +26 lines, -20 lines 0 comments Download
M o3d/gpu_plugin/command_buffer.cc View 1 4 chunks +17 lines, -7 lines 0 comments Download
M o3d/gpu_plugin/command_buffer_mock.h View 1 1 chunk +12 lines, -7 lines 0 comments Download
M o3d/gpu_plugin/command_buffer_unittest.cc View 1 7 chunks +35 lines, -14 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin.gyp View 3 chunks +136 lines, -0 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin_object.cc View 1 chunk +9 lines, -6 lines 0 comments Download
M o3d/gpu_plugin/gpu_plugin_object_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M o3d/gpu_plugin/gpu_processor.h View 1 chunk +44 lines, -7 lines 0 comments Download
M o3d/gpu_plugin/gpu_processor.cc View 1 chunk +50 lines, -51 lines 0 comments Download
M o3d/gpu_plugin/gpu_processor_unittest.cc View 1 3 chunks +207 lines, -64 lines 0 comments Download
M o3d/gpu_plugin/gpu_processor_win.cc View 1 1 chunk +64 lines, -19 lines 0 comments Download
M o3d/gpu_plugin/system_services/shared_memory.h View 1 1 chunk +7 lines, -2 lines 0 comments Download
M o3d/gpu_plugin/system_services/shared_memory.cc View 1 chunk +11 lines, -4 lines 0 comments Download
M o3d/gpu_plugin/system_services/shared_memory_unittest.cc View 3 chunks +30 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
apatrick
11 years, 2 months ago (2009-09-24 00:52:46 UTC) #1
gman
Please fix the lint errors. I think all but 1 are fixable. Also, this seems ...
11 years, 2 months ago (2009-09-24 01:44:04 UTC) #2
gman
I forgot LGTM
11 years, 2 months ago (2009-09-24 02:07:33 UTC) #3
apatrick
11 years, 2 months ago (2009-09-24 19:01:06 UTC) #4
Yeah I'm hoping I can use the new WebGL array types. I've been talking to kbr
about supporting mapping them into the address spaces of other processes. It
seems Chromium WebGL will need this for textures and buffers and suchlike.

Powered by Google App Engine
This is Rietveld 408576698