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

Side by Side Diff: webkit/compositor_bindings/web_layer_tree_view_impl.cc

Issue 11414308: Add vsync notification command line switch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 10 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 | « content/public/common/common_param_traits_macros.h ('k') | webkit/glue/webpreferences.h » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 "web_layer_tree_view_impl.h" 5 #include "web_layer_tree_view_impl.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/string_number_conversions.h" 8 #include "base/string_number_conversions.h"
9 #include "cc/font_atlas.h" 9 #include "cc/font_atlas.h"
10 #include "cc/input_handler.h" 10 #include "cc/input_handler.h"
(...skipping 23 matching lines...) Expand all
34 34
35 WebLayerTreeViewImpl::~WebLayerTreeViewImpl() 35 WebLayerTreeViewImpl::~WebLayerTreeViewImpl()
36 { 36 {
37 } 37 }
38 38
39 bool WebLayerTreeViewImpl::initialize(const WebLayerTreeView::Settings& webSetti ngs, scoped_ptr<Thread> implThread) 39 bool WebLayerTreeViewImpl::initialize(const WebLayerTreeView::Settings& webSetti ngs, scoped_ptr<Thread> implThread)
40 { 40 {
41 LayerTreeSettings settings; 41 LayerTreeSettings settings;
42 settings.acceleratePainting = webSettings.acceleratePainting; 42 settings.acceleratePainting = webSettings.acceleratePainting;
43 settings.renderVSyncEnabled = webSettings.renderVSyncEnabled; 43 settings.renderVSyncEnabled = webSettings.renderVSyncEnabled;
44 settings.renderVSyncNotificationEnabled = webSettings.renderVSyncNotificatio nEnabled;
danakj 2013/02/07 19:23:17 You'll need to do this in content/renderer/render_
44 settings.perTilePaintingEnabled = webSettings.perTilePaintingEnabled; 45 settings.perTilePaintingEnabled = webSettings.perTilePaintingEnabled;
45 settings.rightAlignedSchedulingEnabled = CommandLine::ForCurrentProcess()->H asSwitch(cc::switches::kEnableRightAlignedScheduling); 46 settings.rightAlignedSchedulingEnabled = CommandLine::ForCurrentProcess()->H asSwitch(cc::switches::kEnableRightAlignedScheduling);
46 settings.acceleratedAnimationEnabled = webSettings.acceleratedAnimationEnabl ed; 47 settings.acceleratedAnimationEnabled = webSettings.acceleratedAnimationEnabl ed;
47 settings.pageScalePinchZoomEnabled = webSettings.pageScalePinchZoomEnabled; 48 settings.pageScalePinchZoomEnabled = webSettings.pageScalePinchZoomEnabled;
48 settings.refreshRate = webSettings.refreshRate; 49 settings.refreshRate = webSettings.refreshRate;
49 settings.defaultTileSize = webSettings.defaultTileSize; 50 settings.defaultTileSize = webSettings.defaultTileSize;
50 settings.maxUntiledLayerSize = webSettings.maxUntiledLayerSize; 51 settings.maxUntiledLayerSize = webSettings.maxUntiledLayerSize;
51 settings.initialDebugState.showFPSCounter = webSettings.showFPSCounter; 52 settings.initialDebugState.showFPSCounter = webSettings.showFPSCounter;
52 settings.initialDebugState.showPaintRects = webSettings.showPaintRects; 53 settings.initialDebugState.showPaintRects = webSettings.showPaintRects;
53 settings.initialDebugState.showPlatformLayerTree = webSettings.showPlatformL ayerTree; 54 settings.initialDebugState.showPlatformLayerTree = webSettings.showPlatformL ayerTree;
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 { 304 {
304 m_client->didCompleteSwapBuffers(); 305 m_client->didCompleteSwapBuffers();
305 } 306 }
306 307
307 void WebLayerTreeViewImpl::scheduleComposite() 308 void WebLayerTreeViewImpl::scheduleComposite()
308 { 309 {
309 m_client->scheduleComposite(); 310 m_client->scheduleComposite();
310 } 311 }
311 312
312 } // namespace WebKit 313 } // namespace WebKit
OLDNEW
« no previous file with comments | « content/public/common/common_param_traits_macros.h ('k') | webkit/glue/webpreferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698