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

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

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes Created 5 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 // 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 void MockCommandBufferBase::SetContextLostReason( 106 void MockCommandBufferBase::SetContextLostReason(
107 error::ContextLostReason reason) { 107 error::ContextLostReason reason) {
108 NOTREACHED(); 108 NOTREACHED();
109 state_.context_lost_reason = reason; 109 state_.context_lost_reason = reason;
110 } 110 }
111 111
112 int32 MockCommandBufferBase::GetPutOffset() { 112 int32 MockCommandBufferBase::GetPutOffset() {
113 return put_offset_; 113 return put_offset_;
114 } 114 }
115 115
116 void MockCommandBufferBase::GetRouteInformation(int* channel_id,
117 uint32_t* route_id) {
118 if (channel_id)
119 *channel_id = 0;
120
121 if (route_id)
122 *route_id = 0;
123 }
124
116 // GCC requires these declarations, but MSVC requires they not be present 125 // GCC requires these declarations, but MSVC requires they not be present
117 #ifndef _MSC_VER 126 #ifndef _MSC_VER
118 const int32 MockCommandBufferBase::kTransferBufferBaseId; 127 const int32 MockCommandBufferBase::kTransferBufferBaseId;
119 const int32 MockCommandBufferBase::kMaxTransferBuffers; 128 const int32 MockCommandBufferBase::kMaxTransferBuffers;
120 #endif 129 #endif
121 130
122 MockClientCommandBuffer::MockClientCommandBuffer() { 131 MockClientCommandBuffer::MockClientCommandBuffer() {
123 DelegateToFake(); 132 DelegateToFake();
124 } 133 }
125 134
(...skipping 30 matching lines...) Expand all
156 165
157 MockClientGpuControl::MockClientGpuControl() { 166 MockClientGpuControl::MockClientGpuControl() {
158 } 167 }
159 168
160 MockClientGpuControl::~MockClientGpuControl() { 169 MockClientGpuControl::~MockClientGpuControl() {
161 } 170 }
162 171
163 } // namespace gpu 172 } // namespace gpu
164 173
165 174
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698