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

Side by Side Diff: gpu/command_buffer/service/gles2_cmd_decoder.h

Issue 2275203002: Make command buffer commands and immediate data volatile (Closed)
Patch Set: std::copy->const_cast+memcpy Created 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file contains the GLES2Decoder class. 5 // This file contains the GLES2Decoder class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after
335 335
336 protected: 336 protected:
337 GLES2Decoder(); 337 GLES2Decoder();
338 338
339 // Decode a command, and call the corresponding GL functions. 339 // Decode a command, and call the corresponding GL functions.
340 // NOTE: DoCommand() is slower than calling DoCommands() on larger batches 340 // NOTE: DoCommand() is slower than calling DoCommands() on larger batches
341 // of commands at once, and is now only used for tests that need to track 341 // of commands at once, and is now only used for tests that need to track
342 // individual commands. 342 // individual commands.
343 error::Error DoCommand(unsigned int command, 343 error::Error DoCommand(unsigned int command,
344 unsigned int arg_count, 344 unsigned int arg_count,
345 const void* cmd_data) override; 345 const volatile void* cmd_data) override;
346 346
347 private: 347 private:
348 bool initialized_; 348 bool initialized_;
349 bool debug_; 349 bool debug_;
350 bool log_commands_; 350 bool log_commands_;
351 bool unsafe_es3_apis_enabled_; 351 bool unsafe_es3_apis_enabled_;
352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 352 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
353 }; 353 };
354 354
355 } // namespace gles2 355 } // namespace gles2
356 } // namespace gpu 356 } // namespace gpu
357 357
358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 358 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/common_decoder_unittest.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698