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

Side by Side Diff: mojo/gles2/command_buffer_client_impl.cc

Issue 634083002: gpu: Compositor management of GpuMemoryBuffer instances. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cc-pre-chromium-image-refactor
Patch Set: rebase Created 6 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "mojo/gles2/command_buffer_client_impl.h" 5 #include "mojo/gles2/command_buffer_client_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/process/process_handle.h" 10 #include "base/process/process_handle.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 void CommandBufferClientImpl::DestroyTransferBuffer(int32 id) { 184 void CommandBufferClientImpl::DestroyTransferBuffer(int32 id) {
185 command_buffer_->DestroyTransferBuffer(id); 185 command_buffer_->DestroyTransferBuffer(id);
186 } 186 }
187 187
188 gpu::Capabilities CommandBufferClientImpl::GetCapabilities() { 188 gpu::Capabilities CommandBufferClientImpl::GetCapabilities() {
189 // TODO(piman) 189 // TODO(piman)
190 NOTIMPLEMENTED(); 190 NOTIMPLEMENTED();
191 return gpu::Capabilities(); 191 return gpu::Capabilities();
192 } 192 }
193 193
194 gfx::GpuMemoryBuffer* CommandBufferClientImpl::CreateGpuMemoryBuffer( 194 int32_t CommandBufferClientImpl::CreateImage(ClientBuffer buffer,
195 size_t width, 195 size_t width,
196 size_t height, 196 size_t height,
197 unsigned internalformat, 197 unsigned internalformat) {
198 unsigned usage,
199 int32* id) {
200 // TODO(piman) 198 // TODO(piman)
201 NOTIMPLEMENTED(); 199 NOTIMPLEMENTED();
202 return NULL; 200 return -1;
203 } 201 }
204 202
205 void CommandBufferClientImpl::DestroyGpuMemoryBuffer(int32 id) { 203 void CommandBufferClientImpl::DestroyImage(int32 id) {
206 // TODO(piman) 204 // TODO(piman)
207 NOTIMPLEMENTED(); 205 NOTIMPLEMENTED();
208 } 206 }
209 207
208 int32_t CommandBufferClientImpl::CreateGpuMemoryBufferImage(
209 size_t width,
210 size_t height,
211 unsigned internalformat,
212 unsigned usage) {
213 // TODO(piman)
214 NOTIMPLEMENTED();
215 return -1;
216 }
217
210 uint32 CommandBufferClientImpl::InsertSyncPoint() { 218 uint32 CommandBufferClientImpl::InsertSyncPoint() {
211 // TODO(jamesr): Optimize this. 219 // TODO(jamesr): Optimize this.
212 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_); 220 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_);
213 return 0; 221 return 0;
214 } 222 }
215 223
216 uint32 CommandBufferClientImpl::InsertFutureSyncPoint() { 224 uint32 CommandBufferClientImpl::InsertFutureSyncPoint() {
217 // TODO(jamesr): Optimize this. 225 // TODO(jamesr): Optimize this.
218 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_); 226 WaitForGetOffsetInRange(last_put_offset_, last_put_offset_);
219 return 0; 227 return 0;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 DidDestroy(); 285 DidDestroy();
278 return; 286 return;
279 } 287 }
280 288
281 if (state->generation - last_state_.generation < 0x80000000U) 289 if (state->generation - last_state_.generation < 0x80000000U)
282 last_state_ = state.To<State>(); 290 last_state_ = state.To<State>();
283 } 291 }
284 292
285 } // namespace gles2 293 } // namespace gles2
286 } // namespace mojo 294 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/gles2/command_buffer_client_impl.h ('k') | mojo/services/html_viewer/weblayertreeview_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698