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

Side by Side Diff: gpu/command_buffer/client/client_test_helper.cc

Issue 20017005: gpu: Refactor GpuMemoryBuffer framework for multi-process support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Include proper internalformat support.[D Created 7 years, 4 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 // 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 // Tests for GLES2Implementation. 5 // Tests for GLES2Implementation.
6 6
7 #include "gpu/command_buffer/client/client_test_helper.h" 7 #include "gpu/command_buffer/client/client_test_helper.h"
8 8
9 #include "gpu/command_buffer/common/command_buffer.h" 9 #include "gpu/command_buffer/common/command_buffer.h"
10 #include "gpu/command_buffer/client/cmd_buffer_helper.h" 10 #include "gpu/command_buffer/client/cmd_buffer_helper.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 error::ContextLostReason reason) { 107 error::ContextLostReason reason) {
108 GPU_NOTREACHED(); 108 GPU_NOTREACHED();
109 state_.context_lost_reason = reason; 109 state_.context_lost_reason = reason;
110 } 110 }
111 111
112 uint32 MockCommandBufferBase::InsertSyncPoint() { 112 uint32 MockCommandBufferBase::InsertSyncPoint() {
113 GPU_NOTREACHED(); 113 GPU_NOTREACHED();
114 return 0; 114 return 0;
115 } 115 }
116 116
117 gfx::GpuMemoryBuffer* MockCommandBufferBase::CreateGpuMemoryBuffer(
118 size_t width,
119 size_t height,
120 unsigned internalformat,
121 int32* id) {
122 GPU_NOTREACHED();
123 return NULL;
124 }
125
126 void MockCommandBufferBase::DestroyGpuMemoryBuffer(int32 id) {
127 GPU_NOTREACHED();
128 }
129
130 gfx::GLImage* MockCommandBufferBase::GetImage(int32 id) {
131 GPU_NOTREACHED();
132 return NULL;
133 }
134
117 // GCC requires these declarations, but MSVC requires they not be present 135 // GCC requires these declarations, but MSVC requires they not be present
118 #ifndef _MSC_VER 136 #ifndef _MSC_VER
119 const int32 MockCommandBufferBase::kTransferBufferBaseId; 137 const int32 MockCommandBufferBase::kTransferBufferBaseId;
120 const int32 MockCommandBufferBase::kMaxTransferBuffers; 138 const int32 MockCommandBufferBase::kMaxTransferBuffers;
121 #endif 139 #endif
122 140
123 MockClientCommandBuffer::MockClientCommandBuffer() { 141 MockClientCommandBuffer::MockClientCommandBuffer() {
124 DelegateToFake(); 142 DelegateToFake();
125 } 143 }
126 144
(...skipping 20 matching lines...) Expand all
147 void MockClientCommandBufferMockFlush::DelegateToFake() { 165 void MockClientCommandBufferMockFlush::DelegateToFake() {
148 MockClientCommandBuffer::DelegateToFake(); 166 MockClientCommandBuffer::DelegateToFake();
149 ON_CALL(*this, Flush(_)) 167 ON_CALL(*this, Flush(_))
150 .WillByDefault(Invoke( 168 .WillByDefault(Invoke(
151 this, &MockCommandBufferBase::FlushHelper)); 169 this, &MockCommandBufferBase::FlushHelper));
152 } 170 }
153 171
154 } // namespace gpu 172 } // namespace gpu
155 173
156 174
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698