| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |