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

Side by Side Diff: chrome/browser/plugin_process_host.cc

Issue 367002: Added Pepper 3D render context that instantiates the GPU plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 12 months 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 | « chrome/DEPS ('k') | chrome/browser/plugin_service.cc » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/browser/plugin_process_host.h" 5 #include "chrome/browser/plugin_process_host.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #elif defined(OS_POSIX) 9 #elif defined(OS_POSIX)
10 #include <utility> // for pair<> 10 #include <utility> // for pair<>
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 switches::kEnableLogging, 366 switches::kEnableLogging,
367 switches::kDisableLogging, 367 switches::kDisableLogging,
368 switches::kLoggingLevel, 368 switches::kLoggingLevel,
369 switches::kLogPluginMessages, 369 switches::kLogPluginMessages,
370 switches::kUserDataDir, 370 switches::kUserDataDir,
371 switches::kEnableDCHECK, 371 switches::kEnableDCHECK,
372 switches::kSilentDumpOnDCHECK, 372 switches::kSilentDumpOnDCHECK,
373 switches::kMemoryProfiling, 373 switches::kMemoryProfiling,
374 switches::kUseLowFragHeapCrt, 374 switches::kUseLowFragHeapCrt,
375 switches::kEnableStatsTable, 375 switches::kEnableStatsTable,
376 switches::kEnableGPUPlugin,
376 #if defined(OS_CHROMEOS) 377 #if defined(OS_CHROMEOS)
377 switches::kProfile, 378 switches::kProfile,
378 #endif 379 #endif
379 }; 380 };
380 381
381 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess(); 382 const CommandLine& browser_command_line = *CommandLine::ForCurrentProcess();
382 383
383 for (size_t i = 0; i < arraysize(switch_names); ++i) { 384 for (size_t i = 0; i < arraysize(switch_names); ++i) {
384 if (browser_command_line.HasSwitch(switch_names[i])) { 385 if (browser_command_line.HasSwitch(switch_names[i])) {
385 cmd_line->AppendSwitchWithValue( 386 cmd_line->AppendSwitchWithValue(
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 const std::vector<uint8>& data) { 648 const std::vector<uint8>& data) {
648 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO)); 649 DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
649 650
650 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path); 651 ChromePluginLib *chrome_plugin = ChromePluginLib::Find(info_.path);
651 if (chrome_plugin) { 652 if (chrome_plugin) {
652 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0])); 653 void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
653 uint32 data_len = static_cast<uint32>(data.size()); 654 uint32 data_len = static_cast<uint32>(data.size());
654 chrome_plugin->functions().on_message(data_ptr, data_len); 655 chrome_plugin->functions().on_message(data_ptr, data_len);
655 } 656 }
656 } 657 }
OLDNEW
« no previous file with comments | « chrome/DEPS ('k') | chrome/browser/plugin_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698