summaryrefslogtreecommitdiffstats
path: root/o3d/command_buffer/client
diff options
context:
space:
mode:
authorpetersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 02:39:33 +0000
committerpetersont@google.com <petersont@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-26 02:39:33 +0000
commite73d4f7b1f150436dae5d589fd73c8d17c2dcb56 (patch)
treeabdc8f4fba62512c716f14b67badd7993c0394fe /o3d/command_buffer/client
parenta4369599f7e9c15c66bcf66cc1c9bd158666eea4 (diff)
downloadchromium_src-e73d4f7b1f150436dae5d589fd73c8d17c2dcb56.zip
chromium_src-e73d4f7b1f150436dae5d589fd73c8d17c2dcb56.tar.gz
chromium_src-e73d4f7b1f150436dae5d589fd73c8d17c2dcb56.tar.bz2
Created new build target for opengl command buffer service, fixed various bugs in opengl command buffers service code until unit tests passed on windows.
Review URL: http://codereview.chromium.org/165279 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24415 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'o3d/command_buffer/client')
-rw-r--r--o3d/command_buffer/client/cross/effect_helper.cc1
-rw-r--r--o3d/command_buffer/client/cross/effect_helper.h2
2 files changed, 3 insertions, 0 deletions
diff --git a/o3d/command_buffer/client/cross/effect_helper.cc b/o3d/command_buffer/client/cross/effect_helper.cc
index 1552e29..8302c14 100644
--- a/o3d/command_buffer/client/cross/effect_helper.cc
+++ b/o3d/command_buffer/client/cross/effect_helper.cc
@@ -111,6 +111,7 @@ bool EffectHelper::CreateEffectParameters(ResourceID effect_id,
Desc *raw_desc = raw_descs + j;
desc->data_type = raw_desc->data_type;
desc->data_size = raw_desc->data_size;
+ desc->num_elements = raw_desc->num_elements;
desc->cmd_desc_size = raw_desc->size;
}
}
diff --git a/o3d/command_buffer/client/cross/effect_helper.h b/o3d/command_buffer/client/cross/effect_helper.h
index 4c62487..d802e4a 100644
--- a/o3d/command_buffer/client/cross/effect_helper.h
+++ b/o3d/command_buffer/client/cross/effect_helper.h
@@ -55,6 +55,8 @@ class EffectHelper {
String semantic; // The semantic of the param.
effect_param::DataType data_type; // The data type of a param.
unsigned int data_size; // The size of the data for a param.
+ int num_elements; // The number of array entries if the
+ // parameter is an array, 0 otherwise.
unsigned int cmd_desc_size; // The size of the effect_param::Desc
// structure (counting strings) for a
// param.