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

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

Issue 896723008: Add OrderingBarrierCHROMIUM API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nits. Created 5 years, 10 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 DelegateToFake(); 123 DelegateToFake();
124 } 124 }
125 125
126 MockClientCommandBuffer::~MockClientCommandBuffer() { 126 MockClientCommandBuffer::~MockClientCommandBuffer() {
127 } 127 }
128 128
129 void MockClientCommandBuffer::Flush(int32 put_offset) { 129 void MockClientCommandBuffer::Flush(int32 put_offset) {
130 FlushHelper(put_offset); 130 FlushHelper(put_offset);
131 } 131 }
132 132
133 void MockClientCommandBuffer::OrderingBarrier(int32 put_offset) {
134 FlushHelper(put_offset);
135 }
136
133 void MockClientCommandBuffer::DelegateToFake() { 137 void MockClientCommandBuffer::DelegateToFake() {
134 ON_CALL(*this, DestroyTransferBuffer(_)) 138 ON_CALL(*this, DestroyTransferBuffer(_))
135 .WillByDefault(Invoke( 139 .WillByDefault(Invoke(
136 this, &MockCommandBufferBase::DestroyTransferBufferHelper)); 140 this, &MockCommandBufferBase::DestroyTransferBufferHelper));
137 } 141 }
138 142
139 MockClientCommandBufferMockFlush::MockClientCommandBufferMockFlush() { 143 MockClientCommandBufferMockFlush::MockClientCommandBufferMockFlush() {
140 DelegateToFake(); 144 DelegateToFake();
141 } 145 }
142 146
143 MockClientCommandBufferMockFlush::~MockClientCommandBufferMockFlush() { 147 MockClientCommandBufferMockFlush::~MockClientCommandBufferMockFlush() {
144 } 148 }
145 149
146 void MockClientCommandBufferMockFlush::DelegateToFake() { 150 void MockClientCommandBufferMockFlush::DelegateToFake() {
147 MockClientCommandBuffer::DelegateToFake(); 151 MockClientCommandBuffer::DelegateToFake();
148 ON_CALL(*this, Flush(_)) 152 ON_CALL(*this, Flush(_))
149 .WillByDefault(Invoke( 153 .WillByDefault(Invoke(
150 this, &MockCommandBufferBase::FlushHelper)); 154 this, &MockCommandBufferBase::FlushHelper));
151 } 155 }
152 156
153 MockClientGpuControl::MockClientGpuControl() { 157 MockClientGpuControl::MockClientGpuControl() {
154 } 158 }
155 159
156 MockClientGpuControl::~MockClientGpuControl() { 160 MockClientGpuControl::~MockClientGpuControl() {
157 } 161 }
158 162
159 } // namespace gpu 163 } // namespace gpu
160 164
161 165
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/cmd_buffer_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698