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

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

Issue 711343002: Exclude unused functions for NaCl code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
« no previous file with comments | « base/threading/platform_thread_linux.cc ('k') | no next file » | 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 10 matching lines...) Expand all
21 using ppapi::thunk::ResourceCreationAPI; 21 using ppapi::thunk::ResourceCreationAPI;
22 22
23 namespace ppapi { 23 namespace ppapi {
24 namespace proxy { 24 namespace proxy {
25 25
26 namespace { 26 namespace {
27 27
28 const int32 kCommandBufferSize = 1024 * 1024; 28 const int32 kCommandBufferSize = 1024 * 1024;
29 const int32 kTransferBufferSize = 1024 * 1024; 29 const int32 kTransferBufferSize = 1024 * 1024;
30 30
31 #if !defined(OS_NACL)
31 base::SharedMemoryHandle TransportSHMHandle( 32 base::SharedMemoryHandle TransportSHMHandle(
32 Dispatcher* dispatcher, 33 Dispatcher* dispatcher,
33 const base::SharedMemoryHandle& handle) { 34 const base::SharedMemoryHandle& handle) {
34 base::PlatformFile source = IPC::PlatformFileForTransitToPlatformFile(handle); 35 base::PlatformFile source = IPC::PlatformFileForTransitToPlatformFile(handle);
35 // Don't close the handle, it doesn't belong to us. 36 // Don't close the handle, it doesn't belong to us.
36 return dispatcher->ShareHandleWithRemote(source, false); 37 return dispatcher->ShareHandleWithRemote(source, false);
37 } 38 }
39 #endif // !defined(OS_NACL)
38 40
39 gpu::CommandBuffer::State GetErrorState() { 41 gpu::CommandBuffer::State GetErrorState() {
40 gpu::CommandBuffer::State error_state; 42 gpu::CommandBuffer::State error_state;
41 error_state.error = gpu::error::kGenericError; 43 error_state.error = gpu::error::kGenericError;
42 return error_state; 44 return error_state;
43 } 45 }
44 46
45 } // namespace 47 } // namespace
46 48
47 Graphics3D::Graphics3D(const HostResource& resource) 49 Graphics3D::Graphics3D(const HostResource& resource)
(...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin( 373 void PPB_Graphics3D_Proxy::SendSwapBuffersACKToPlugin(
372 int32_t result, 374 int32_t result,
373 const HostResource& context) { 375 const HostResource& context) {
374 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK( 376 dispatcher()->Send(new PpapiMsg_PPBGraphics3D_SwapBuffersACK(
375 API_ID_PPB_GRAPHICS_3D, context, result)); 377 API_ID_PPB_GRAPHICS_3D, context, result));
376 } 378 }
377 #endif // !defined(OS_NACL) 379 #endif // !defined(OS_NACL)
378 380
379 } // namespace proxy 381 } // namespace proxy
380 } // namespace ppapi 382 } // namespace ppapi
381
OLDNEW
« no previous file with comments | « base/threading/platform_thread_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698