|
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
Total comments: 4
|
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
|
Total messages: 4 (0 generated)
|