Skip to content

Commit

Permalink
Add gpu targets to untrusted build, and add Graphics3D code to untrus…
Browse files Browse the repository at this point in the history
…ted build.

BUG=116317
TEST=builds,manual

With this change, the IPC-based PPAPI proxy builds all code needed for 3d and OpenGL ES.
Review URL: https://chromiumcodereview.appspot.com/10837145

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150432 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
bbudge@chromium.org committed Aug 7, 2012
1 parent b9a383d commit 9ca8a52
Show file tree
Hide file tree
Showing 21 changed files with 617 additions and 359 deletions.
6 changes: 5 additions & 1 deletion gpu/command_buffer/client/ref_counted.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@
#ifndef GPU_COMMAND_BUFFER_CLIENT_REF_COUNTED_H_
#define GPU_COMMAND_BUFFER_CLIENT_REF_COUNTED_H_

#if defined(__native_client__)
// TODO(bbudge) The NaCl SRPC proxy can't depend on base, so we define our own
// ref_counted. This causes duplicate class warnings in the NaCl IPC proxy,
// which uses base. Remove the custom ref_counted class after NaCl has switched
// proxies.
#if defined(__native_client__) && !defined(NACL_PPAPI_IPC_PROXY)
#include "native_client/src/include/ref_counted.h"
namespace gpu {
using nacl::RefCountedThreadSafe;
Expand Down
20 changes: 6 additions & 14 deletions gpu/command_buffer/command_buffer.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,16 @@
'variables': {
'chromium_code': 1,
},
'includes': [
'command_buffer.gypi',
],
'targets': [
{
'target_name': 'gles2_utils',
'type': '<(component)',
'include_dirs': [
'<(DEPTH)/third_party/khronos',
],
'variables': {
'gles2_utils_target': 1,
},
'all_dependent_settings': {
'include_dirs': [
'<(DEPTH)/third_party/khronos',
Expand All @@ -24,17 +27,6 @@
'export_dependent_settings': [
'../../base/base.gyp:base',
],
'defines': [
'GLES2_UTILS_IMPLEMENTATION',
],
'sources': [
'common/gles2_cmd_format.h',
'common/gles2_cmd_utils.cc',
'common/gles2_cmd_utils.h',
'common/gles2_utils_export.h',
'common/logging.cc',
'common/logging.h',
],
},
],
}
Expand Down
30 changes: 30 additions & 0 deletions gpu/command_buffer/command_buffer.gypi
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
'target_defaults': {
'variables': {
'gles2_utils_target': 0,
},
'target_conditions': [
# This part is shared between the targets defined below.
['gles2_utils_target==1', {
'defines': [
'GLES2_UTILS_IMPLEMENTATION',
],
'include_dirs': [
'<(DEPTH)/third_party/khronos',
],
'sources': [
'common/gles2_cmd_format.h',
'common/gles2_cmd_utils.cc',
'common/gles2_cmd_utils.h',
'common/gles2_utils_export.h',
'common/logging.cc',
'common/logging.h',
],
}],
],
},
}
34 changes: 34 additions & 0 deletions gpu/command_buffer/command_buffer_untrusted.gyp
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

{
'variables': {
'chromium_code': 1,
},
'includes': [
'../../native_client/build/untrusted.gypi',
'command_buffer.gypi',
],
'conditions': [
['disable_nacl==0 and disable_nacl_untrusted==0', {
'targets': [
{
'target_name': 'gles2_utils_untrusted',
'type': 'none',
'variables': {
'gles2_utils_target': 1,
'nacl_untrusted_build': 1,
'nlib_target': 'libgles2_utils_untrusted.a',
'build_glibc': 0,
'build_newlib': 1,
},
'dependencies': [
'../../native_client/tools.gyp:prep_toolchain',
'../../base/base_untrusted.gyp:base_untrusted',
],
},
],
}],
],
}
4 changes: 0 additions & 4 deletions gpu/command_buffer_common.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
'<(DEPTH)/third_party/khronos',
],
},
'dependencies': [
'../base/base.gyp:base',
'command_buffer/command_buffer.gyp:gles2_utils',
],
'sources': [
'command_buffer/common/bitfield_helpers.h',
'command_buffer/common/buffer.h',
Expand Down
Loading

0 comments on commit 9ca8a52

Please sign in to comment.