Skip to content

Commit

Permalink
Remove NaCl SRPC proxy source files.
Browse files Browse the repository at this point in the history
This change removes the source files for the old NaCl SRPC
proxy, which is no longer used. Also changes the presubmit
rules to no longer check for srpc files.

BUG=169152
TEST=compiles


Review URL: https://chromiumcodereview.appspot.com/11956045

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177732 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
bbudge@chromium.org committed Jan 18, 2013
1 parent 6643273 commit af90603
Show file tree
Hide file tree
Showing 231 changed files with 0 additions and 32,724 deletions.
59 changes: 0 additions & 59 deletions gpu/command_buffer/build_gles2_cmd_buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -7427,60 +7427,6 @@ def WriteGLES2ToPPAPIBridge(self, filename):
file.Write("}\n\n")
file.Close()

def WritePepperGLES2NaClProxy(self, filename):
"""Writes the Pepper OpenGLES interface implementation for NaCl."""
file = CWriter(filename)
file.Write(_LICENSE)
file.Write(_DO_NOT_EDIT_WARNING)

file.Write("#include \"native_client/src/shared/ppapi_proxy"
"/plugin_ppb_graphics_3d.h\"\n\n")

file.Write("#include \"gpu/command_buffer/client/gles2_implementation.h\"")
file.Write("\n#include \"ppapi/c/ppb_opengles2.h\"\n\n")

file.Write("using ppapi_proxy::PluginGraphics3D;\n")
file.Write("using ppapi_proxy::PluginResource;\n\n")
file.Write("namespace {\n\n")

for func in self.original_functions:
if not func.InAnyPepperExtension():
continue
args = func.MakeTypedOriginalArgString("")
if len(args) != 0:
args = ", " + args
file.Write("%s %s(PP_Resource context%s) {\n" %
(func.return_type, func.name, args))
return_string = "return "
if func.return_type == "void":
return_string = ""
file.Write(" %sPluginGraphics3D::implFromResource(context)->"
"%s(%s);\n" %
(return_string,
func.original_name,
func.MakeOriginalArgString("")))
file.Write("}\n")

file.Write("\n} // namespace\n\n")

for interface in self.pepper_interfaces:
file.Write("const %s* "
"PluginGraphics3D::GetOpenGLES%sInterface() {\n" %
(interface.GetStructName(), interface.GetName()))

file.Write(" const static struct %s ppb_opengles = {\n" %
interface.GetStructName())
file.Write(" &")
file.Write(",\n &".join(
f.name for f in self.original_functions
if f.InPepperInterface(interface)))
file.Write("\n")
file.Write(" };\n")
file.Write(" return &ppb_opengles;\n")
file.Write("}\n")
file.Close()


def main(argv):
"""This is the main function."""
parser = OptionParser()
Expand Down Expand Up @@ -7537,11 +7483,6 @@ def main(argv):
gen.WritePepperGLES2Implementation(
"ppapi/shared_impl/ppb_opengles2_shared.cc")

elif options.alternate_mode == "nacl_ppapi":
os.chdir("ppapi")
gen.WritePepperGLES2NaClProxy(
"native_client/src/shared/ppapi_proxy/plugin_opengles.cc")

else:
os.chdir("gpu/command_buffer")
gen.WriteCommandIds("common/gles2_cmd_ids_autogen.h")
Expand Down
17 changes: 0 additions & 17 deletions ppapi/PRESUBMIT.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,6 @@ def RunUnittests(input_api, output_api):
return results


# If any .srpc files were changed, run run_srpcgen.py --diff_mode.
def CheckSrpcChange(input_api, output_api):
if [True for filename in input_api.LocalPaths() if
os.path.splitext(filename)[1] == '.srpc']:
return RunCmdAndCheck([sys.executable,
os.path.join(input_api.PresubmitLocalPath(),
'native_client', 'src',
'shared', 'ppapi_proxy',
'run_srpcgen.py'),
'--diff_mode'],
'PPAPI SRPC Diff detected: Run run_srpcgen.py.',
output_api)
return []


# Verify that the files do not contain a 'TODO' in them.
RE_TODO = re.compile(r'\WTODO\W', flags=re.I)
def CheckTODO(input_api, output_api):
Expand Down Expand Up @@ -126,8 +111,6 @@ def CheckUnversionedPPB(input_api, output_api):
def CheckChange(input_api, output_api):
results = []

results.extend(CheckSrpcChange(input_api, output_api))

results.extend(RunUnittests(input_api, output_api))

results.extend(CheckTODO(input_api, output_api))
Expand Down
14 changes: 0 additions & 14 deletions ppapi/native_client/src/shared/ppapi_proxy/DEPS

This file was deleted.

This file was deleted.

185 changes: 0 additions & 185 deletions ppapi/native_client/src/shared/ppapi_proxy/browser_callback.cc

This file was deleted.

Loading

0 comments on commit af90603

Please sign in to comment.