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

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

Issue 367002: Added Pepper 3D render context that instantiates the GPU plugin.... (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.cc ('k') | gpu/command_buffer/service/gpu_processor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/common_decoder_unittest.cc
===================================================================
--- gpu/command_buffer/service/common_decoder_unittest.cc (revision 35153)
+++ gpu/command_buffer/service/common_decoder_unittest.cc (working copy)
@@ -78,15 +78,15 @@
}
// Overridden from CommandBufferEngine.
- virtual void* GetSharedMemoryAddress(int32 shm_id) {
- return (shm_id == kValidShmId) ? buffer_ : NULL;
+ virtual Buffer GetSharedMemoryBuffer(int32 shm_id) {
+ Buffer buffer;
+ if (shm_id == kValidShmId) {
+ buffer.ptr = buffer_;
+ buffer.size = kBufferSize;
+ }
+ return buffer;
}
- // Overridden from CommandBufferEngine.
- virtual size_t GetSharedMemorySize(int32 shm_id) {
- return (shm_id == kValidShmId) ? kBufferSize : 0;
- }
-
template <typename T>
T GetSharedMemoryAs(uint32 offset) {
DCHECK(offset < kBufferSize);
« no previous file with comments | « gpu/command_buffer/service/common_decoder.cc ('k') | gpu/command_buffer/service/gpu_processor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698