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

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

Issue 11474040: Fix some types at the IPC layer. Sizes should be unsigned. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years 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 | Annotate | Revision Log
« no previous file with comments | « ppapi/proxy/ppb_graphics_3d_proxy.h ('k') | ppapi/proxy/ppb_video_decoder_proxy.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/ppb_graphics_3d_proxy.h" 5 #include "ppapi/proxy/ppb_graphics_3d_proxy.h"
6 6
7 #include "gpu/command_buffer/client/gles2_implementation.h" 7 #include "gpu/command_buffer/client/gles2_implementation.h"
8 #include "gpu/command_buffer/common/command_buffer.h" 8 #include "gpu/command_buffer/common/command_buffer.h"
9 #include "ppapi/c/pp_errors.h" 9 #include "ppapi/c/pp_errors.h"
10 #include "ppapi/proxy/enter_proxy.h" 10 #include "ppapi/proxy/enter_proxy.h"
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 442
443 void PPB_Graphics3D_Proxy::OnMsgAsyncFlush(const HostResource& context, 443 void PPB_Graphics3D_Proxy::OnMsgAsyncFlush(const HostResource& context,
444 int32 put_offset) { 444 int32 put_offset) {
445 EnterHostFromHostResource<PPB_Graphics3D_API> enter(context); 445 EnterHostFromHostResource<PPB_Graphics3D_API> enter(context);
446 if (enter.succeeded()) 446 if (enter.succeeded())
447 enter.object()->Flush(put_offset); 447 enter.object()->Flush(put_offset);
448 } 448 }
449 449
450 void PPB_Graphics3D_Proxy::OnMsgCreateTransferBuffer( 450 void PPB_Graphics3D_Proxy::OnMsgCreateTransferBuffer(
451 const HostResource& context, 451 const HostResource& context,
452 int32 size, 452 uint32 size,
453 int32* id) { 453 int32* id) {
454 EnterHostFromHostResource<PPB_Graphics3D_API> enter(context); 454 EnterHostFromHostResource<PPB_Graphics3D_API> enter(context);
455 if (enter.succeeded()) 455 if (enter.succeeded())
456 *id = enter.object()->CreateTransferBuffer(size); 456 *id = enter.object()->CreateTransferBuffer(size);
457 else 457 else
458 *id = 0; 458 *id = 0;
459 } 459 }
460 460
461 void PPB_Graphics3D_Proxy::OnMsgDestroyTransferBuffer( 461 void PPB_Graphics3D_Proxy::OnMsgDestroyTransferBuffer(
462 const HostResource& context, 462 const HostResource& context,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 int32_t result, 504 int32_t result,
505 const HostResource& context) { 505 const HostResource& context) {
506 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK( 506 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK(
507 API_ID_PPB_GRAPHICS_3D, context, result)); 507 API_ID_PPB_GRAPHICS_3D, context, result));
508 } 508 }
509 #endif // !defined(OS_NACL) 509 #endif // !defined(OS_NACL)
510 510
511 } // namespace proxy 511 } // namespace proxy
512 } // namespace ppapi 512 } // namespace ppapi
513 513
OLDNEW
« no previous file with comments | « ppapi/proxy/ppb_graphics_3d_proxy.h ('k') | ppapi/proxy/ppb_video_decoder_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698