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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 605373002: Chromium flag to enable accelerated YUV decoding (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 "content/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 command_line.HasSwitch(switches::kEnableViewport) || 456 command_line.HasSwitch(switches::kEnableViewport) ||
457 prefs.viewport_meta_enabled; 457 prefs.viewport_meta_enabled;
458 458
459 prefs.main_frame_resizes_are_orientation_changes = 459 prefs.main_frame_resizes_are_orientation_changes =
460 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); 460 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges);
461 461
462 prefs.deferred_image_decoding_enabled = 462 prefs.deferred_image_decoding_enabled =
463 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) || 463 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) ||
464 content::IsImplSidePaintingEnabled(); 464 content::IsImplSidePaintingEnabled();
465 465
466 prefs.decode_to_yuv_enabled =
467 command_line.HasSwitch(switches::kEnableAcceleratedJpegDecoding);
468
466 prefs.spatial_navigation_enabled = command_line.HasSwitch( 469 prefs.spatial_navigation_enabled = command_line.HasSwitch(
467 switches::kEnableSpatialNavigation); 470 switches::kEnableSpatialNavigation);
468 471
469 if (command_line.HasSwitch(switches::kV8CacheOptions)) { 472 if (command_line.HasSwitch(switches::kV8CacheOptions)) {
470 const std::string v8_cache_options = 473 const std::string v8_cache_options =
471 command_line.GetSwitchValueASCII(switches::kV8CacheOptions); 474 command_line.GetSwitchValueASCII(switches::kV8CacheOptions);
472 if (v8_cache_options == "parse") { 475 if (v8_cache_options == "parse") {
473 prefs.v8_cache_options = V8_CACHE_OPTIONS_PARSE; 476 prefs.v8_cache_options = V8_CACHE_OPTIONS_PARSE;
474 } else if (v8_cache_options == "code") { 477 } else if (v8_cache_options == "code") {
475 prefs.v8_cache_options = V8_CACHE_OPTIONS_CODE; 478 prefs.v8_cache_options = V8_CACHE_OPTIONS_CODE;
(...skipping 1032 matching lines...) Expand 10 before | Expand all | Expand 10 after
1508 FrameTree* frame_tree = delegate_->GetFrameTree(); 1511 FrameTree* frame_tree = delegate_->GetFrameTree();
1509 1512
1510 frame_tree->ResetForMainFrameSwap(); 1513 frame_tree->ResetForMainFrameSwap();
1511 } 1514 }
1512 1515
1513 void RenderViewHostImpl::SelectWordAroundCaret() { 1516 void RenderViewHostImpl::SelectWordAroundCaret() {
1514 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID())); 1517 Send(new ViewMsg_SelectWordAroundCaret(GetRoutingID()));
1515 } 1518 }
1516 1519
1517 } // namespace content 1520 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/common_param_traits_macros.h » ('j') | content/public/common/common_param_traits_macros.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698