summaryrefslogtreecommitdiffstats
path: root/webkit/plugins/ppapi/ppb_context_3d_impl.cc
diff options
context:
space:
mode:
authorjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 04:21:10 +0000
committerjhawkins@chromium.org <jhawkins@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-22 04:21:10 +0000
commit92d5d525fc362abbf882d045261373a17798c043 (patch)
tree3e9ca61bef4e49726c5383de8f21a8bb34d1bd2a /webkit/plugins/ppapi/ppb_context_3d_impl.cc
parent1264b8bdf52d38e7a32b7b7de9737ea0a307bdd7 (diff)
downloadchromium_src-92d5d525fc362abbf882d045261373a17798c043.zip
chromium_src-92d5d525fc362abbf882d045261373a17798c043.tar.gz
chromium_src-92d5d525fc362abbf882d045261373a17798c043.tar.bz2
Coverity: Pass parameters by reference.
CID=8725,14376,15499,15540,15655,16687,16688 BUG=none TEST=none R=kmadhusu@chromium.org Review URL: http://codereview.chromium.org/7211037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89976 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/plugins/ppapi/ppb_context_3d_impl.cc')
-rw-r--r--webkit/plugins/ppapi/ppb_context_3d_impl.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/webkit/plugins/ppapi/ppb_context_3d_impl.cc b/webkit/plugins/ppapi/ppb_context_3d_impl.cc
index 3c581c6..4fd8826 100644
--- a/webkit/plugins/ppapi/ppb_context_3d_impl.cc
+++ b/webkit/plugins/ppapi/ppb_context_3d_impl.cc
@@ -40,7 +40,8 @@ bool ShmToHandle(base::SharedMemory* shm,
return true;
}
-PP_Context3DTrustedState PPStateFromGPUState(gpu::CommandBuffer::State s) {
+PP_Context3DTrustedState PPStateFromGPUState(
+ const gpu::CommandBuffer::State& s) {
PP_Context3DTrustedState state = {
s.num_entries,
s.get_offset,