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

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

Issue 181063022: cc: Trigger GPU rasterization based on a per-layer hint (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 6 years, 9 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) 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 501 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 512
513 prefs.viewport_enabled = 513 prefs.viewport_enabled =
514 command_line.HasSwitch(switches::kEnableViewport) || 514 command_line.HasSwitch(switches::kEnableViewport) ||
515 prefs.viewport_meta_enabled; 515 prefs.viewport_meta_enabled;
516 516
517 prefs.main_frame_resizes_are_orientation_changes = 517 prefs.main_frame_resizes_are_orientation_changes =
518 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges); 518 command_line.HasSwitch(switches::kMainFrameResizesAreOrientationChanges);
519 519
520 prefs.deferred_image_decoding_enabled = 520 prefs.deferred_image_decoding_enabled =
521 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) || 521 command_line.HasSwitch(switches::kEnableDeferredImageDecoding) ||
522 cc::switches::IsImplSidePaintingEnabled(); 522 content::IsImplSidePaintingEnabled();
523 523
524 prefs.spatial_navigation_enabled = command_line.HasSwitch( 524 prefs.spatial_navigation_enabled = command_line.HasSwitch(
525 switches::kEnableSpatialNavigation); 525 switches::kEnableSpatialNavigation);
526 526
527 GetContentClient()->browser()->OverrideWebkitPrefs(this, url, &prefs); 527 GetContentClient()->browser()->OverrideWebkitPrefs(this, url, &prefs);
528 528
529 // Disable compositing in guests until we have compositing path implemented 529 // Disable compositing in guests until we have compositing path implemented
530 // for guests. 530 // for guests.
531 bool guest_compositing_enabled = !command_line.HasSwitch( 531 bool guest_compositing_enabled = !command_line.HasSwitch(
532 switches::kDisableBrowserPluginCompositing); 532 switches::kDisableBrowserPluginCompositing);
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1973 return true; 1973 return true;
1974 } 1974 }
1975 1975
1976 void RenderViewHostImpl::AttachToFrameTree() { 1976 void RenderViewHostImpl::AttachToFrameTree() {
1977 FrameTree* frame_tree = delegate_->GetFrameTree(); 1977 FrameTree* frame_tree = delegate_->GetFrameTree();
1978 1978
1979 frame_tree->ResetForMainFrameSwap(); 1979 frame_tree->ResetForMainFrameSwap();
1980 } 1980 }
1981 1981
1982 } // namespace content 1982 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698