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

Side by Side Diff: ppapi/proxy/ppapi_command_buffer_proxy.cc

Issue 1417853006: gpu: introduce glSetStreamTextureSizeCHROMIUM(GLuint texture, GLint stream_id, GLsizei width, GLsiz… Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android_webview.test failure Created 5 years, 1 month 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 #include "ppapi/proxy/ppapi_command_buffer_proxy.h" 5 #include "ppapi/proxy/ppapi_command_buffer_proxy.h"
6 6
7 #include "base/numerics/safe_conversions.h" 7 #include "base/numerics/safe_conversions.h"
8 #include "ppapi/proxy/ppapi_messages.h" 8 #include "ppapi/proxy/ppapi_messages.h"
9 #include "ppapi/shared_impl/api_id.h" 9 #include "ppapi/shared_impl/api_id.h"
10 #include "ppapi/shared_impl/host_resource.h" 10 #include "ppapi/shared_impl/host_resource.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 } 163 }
164 164
165 void PpapiCommandBufferProxy::DestroyTransferBuffer(int32 id) { 165 void PpapiCommandBufferProxy::DestroyTransferBuffer(int32 id) {
166 if (last_state_.error != gpu::error::kNoError) 166 if (last_state_.error != gpu::error::kNoError)
167 return; 167 return;
168 168
169 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer( 169 Send(new PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer(
170 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id)); 170 ppapi::API_ID_PPB_GRAPHICS_3D, resource_, id));
171 } 171 }
172 172
173 uint32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) { 173 int32 PpapiCommandBufferProxy::CreateStreamTexture(uint32 texture_id) {
174 NOTREACHED(); 174 NOTREACHED();
175 return 0; 175 return 0;
176 } 176 }
177 177
178 void PpapiCommandBufferProxy::SetStreamTextureSize(uint32 texture_id,
179 int32 stream_id,
180 size_t width,
181 size_t height) {
182 NOTIMPLEMENTED();
183 }
184
178 void PpapiCommandBufferProxy::SetLock(base::Lock*) { 185 void PpapiCommandBufferProxy::SetLock(base::Lock*) {
179 NOTIMPLEMENTED(); 186 NOTIMPLEMENTED();
180 } 187 }
181 188
182 bool PpapiCommandBufferProxy::IsGpuChannelLost() { 189 bool PpapiCommandBufferProxy::IsGpuChannelLost() {
183 NOTIMPLEMENTED(); 190 NOTIMPLEMENTED();
184 return false; 191 return false;
185 } 192 }
186 193
187 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const { 194 gpu::CommandBufferNamespace PpapiCommandBufferProxy::GetNamespaceID() const {
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 message->set_unblock(true); 344 message->set_unblock(true);
338 Send(message); 345 Send(message);
339 346
340 flush_info_->flush_pending = false; 347 flush_info_->flush_pending = false;
341 flush_info_->resource.SetHostResource(0, 0); 348 flush_info_->resource.SetHostResource(0, 0);
342 flushed_fence_sync_release_ = pending_fence_sync_release_; 349 flushed_fence_sync_release_ = pending_fence_sync_release_;
343 } 350 }
344 351
345 } // namespace proxy 352 } // namespace proxy
346 } // namespace ppapi 353 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698