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

Unified Diff: gpu/command_buffer/service/gles2_cmd_decoder.cc

Issue 479008: Implements bucket commands and adds unit tests to... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/service/common_decoder_unittest.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
===================================================================
--- gpu/command_buffer/service/gles2_cmd_decoder.cc (revision 34081)
+++ gpu/command_buffer/service/gles2_cmd_decoder.cc (working copy)
@@ -31,15 +31,6 @@
return static_cast<RETURN_TYPE>(const_cast<void*>(AddressAfterStruct(pod)));
}
-// Returns the size in bytes of the data of an Immediate command, a command with
-// its data inline in the command buffer.
-template <typename T>
-unsigned int ImmediateDataSize(uint32 arg_count) {
- return static_cast<unsigned int>(
- (arg_count + 1 - ComputeNumEntries(sizeof(T))) *
- sizeof(CommandBufferEntry)); // NOLINT
-}
-
// Checks if there is enough immediate data.
template<typename T>
bool CheckImmediateDataSize(
@@ -249,13 +240,6 @@
bool InitPlatformSpecific();
bool InitGlew();
- // Typed version of GetAddressAndCheckSize.
- template <typename T>
- T GetSharedMemoryAs(unsigned int shm_id, unsigned int offset,
- unsigned int size) {
- return static_cast<T>(GetAddressAndCheckSize(shm_id, offset, size));
- }
-
// Template to help call glGenXXX functions.
template <void gl_gen_function(GLsizei, GLuint*)>
bool GenGLObjects(GLsizei n, const GLuint* client_ids) {
« no previous file with comments | « gpu/command_buffer/service/common_decoder_unittest.cc ('k') | gpu/gpu.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698