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

Side by Side Diff: command_buffer/service/cross/effect_utils.h

Issue 212018: Change command buffer client code to use structures.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 22 matching lines...) Expand all
33 // This file declares some effect related utilities. 33 // This file declares some effect related utilities.
34 34
35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ 35 #ifndef O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_
36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ 36 #define O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_
37 37
38 #include "command_buffer/common/cross/types.h" 38 #include "command_buffer/common/cross/types.h"
39 39
40 namespace o3d { 40 namespace o3d {
41 namespace command_buffer { 41 namespace command_buffer {
42 42
43 // This function parses the data passed to the CREATE_EFFECT commands, which 43 // This function parses the data passed to the CreateEffect commands, which
44 // follows the following format: 44 // follows the following format:
45 // vertex_program_entry \0 fragment_program_entry \0 effect_code 45 // vertex_program_entry \0 fragment_program_entry \0 effect_code
46 // It returns the various components. 46 // It returns the various components.
47 bool ParseEffectData(unsigned int size, 47 bool ParseEffectData(unsigned int size,
48 const void *data, 48 const void *data,
49 String *vertex_program_entry, 49 String *vertex_program_entry,
50 String *fragment_program_entry, 50 String *fragment_program_entry,
51 String *effect_code); 51 String *effect_code);
52 52
53 } // namespace command_buffer 53 } // namespace command_buffer
54 } // namespace o3d 54 } // namespace o3d
55 55
56 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_ 56 #endif // O3D_COMMAND_BUFFER_SERVICE_CROSS_EFFECT_UTILS_H_
OLDNEW
« no previous file with comments | « command_buffer/service/cross/cmd_parser_test.cc ('k') | command_buffer/service/cross/gapi_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698