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

Side by Side Diff: chrome/renderer/render_view.cc

Issue 3342016: Turning WebGL and the accelerated compositor on by default (linux and windows... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/renderer/render_view.h" 5 #include "chrome/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 2401 matching lines...) Expand 10 before | Expand all | Expand 10 after
2412 new media::FilterFactoryCollection(); 2412 new media::FilterFactoryCollection();
2413 // Add in any custom filter factories first. 2413 // Add in any custom filter factories first.
2414 const CommandLine* cmd_line = CommandLine::ForCurrentProcess(); 2414 const CommandLine* cmd_line = CommandLine::ForCurrentProcess();
2415 if (!cmd_line->HasSwitch(switches::kDisableAudio)) { 2415 if (!cmd_line->HasSwitch(switches::kDisableAudio)) {
2416 // Add the chrome specific audio renderer. 2416 // Add the chrome specific audio renderer.
2417 factory->AddFactory( 2417 factory->AddFactory(
2418 AudioRendererImpl::CreateFactory(audio_message_filter())); 2418 AudioRendererImpl::CreateFactory(audio_message_filter()));
2419 } 2419 }
2420 2420
2421 if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) && 2421 if (cmd_line->HasSwitch(switches::kEnableAcceleratedDecoding) &&
2422 cmd_line->HasSwitch(switches::kEnableAcceleratedCompositing)) { 2422 !cmd_line->HasSwitch(switches::kDisableAcceleratedCompositing)) {
2423 // Add the hardware video decoder factory. 2423 // Add the hardware video decoder factory.
2424 factory->AddFactory( 2424 factory->AddFactory(
2425 media::IpcVideoDecoder::CreateFactory(MessageLoop::current())); 2425 media::IpcVideoDecoder::CreateFactory(MessageLoop::current()));
2426 } 2426 }
2427 2427
2428 WebApplicationCacheHostImpl* appcache_host = 2428 WebApplicationCacheHostImpl* appcache_host =
2429 WebApplicationCacheHostImpl::FromFrame(frame); 2429 WebApplicationCacheHostImpl::FromFrame(frame);
2430 2430
2431 // TODO(hclam): obtain the following parameters from |client|. 2431 // TODO(hclam): obtain the following parameters from |client|.
2432 webkit_glue::MediaResourceLoaderBridgeFactory* bridge_factory = 2432 webkit_glue::MediaResourceLoaderBridgeFactory* bridge_factory =
(...skipping 3218 matching lines...) Expand 10 before | Expand all | Expand 10 after
5651 PendingOpenFileSystem* request = pending_file_system_requests_.Lookup( 5651 PendingOpenFileSystem* request = pending_file_system_requests_.Lookup(
5652 request_id); 5652 request_id);
5653 DCHECK(request); 5653 DCHECK(request);
5654 if (accepted) 5654 if (accepted)
5655 request->callbacks->didOpenFileSystem(name, root_path); 5655 request->callbacks->didOpenFileSystem(name, root_path);
5656 else 5656 else
5657 request->callbacks->didFail(WebKit::WebFileErrorSecurity); 5657 request->callbacks->didFail(WebKit::WebFileErrorSecurity);
5658 request->callbacks = NULL; 5658 request->callbacks = NULL;
5659 pending_file_system_requests_.Remove(request_id); 5659 pending_file_system_requests_.Remove(request_id);
5660 } 5660 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_thread.cc ('k') | chrome/renderer/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698