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

Side by Side Diff: webkit/support/webkit_support.cc

Issue 12378094: Implement WebKit::Platform::isThreadedCompositingEnabled() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | 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) 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 "webkit/support/webkit_support.h" 5 #include "webkit/support/webkit_support.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base64.h" 8 #include "base/base64.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 } 563 }
564 WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware( 564 WebKit::WebLayerTreeView* CreateLayerTreeViewSoftware(
565 DRTLayerTreeViewClient* client) { 565 DRTLayerTreeViewClient* client) {
566 return CreateLayerTreeView(SOFTWARE_CONTEXT, client); 566 return CreateLayerTreeView(SOFTWARE_CONTEXT, client);
567 } 567 }
568 WebKit::WebLayerTreeView* CreateLayerTreeView3d( 568 WebKit::WebLayerTreeView* CreateLayerTreeView3d(
569 DRTLayerTreeViewClient* client) { 569 DRTLayerTreeViewClient* client) {
570 return CreateLayerTreeView(MESA_CONTEXT, client); 570 return CreateLayerTreeView(MESA_CONTEXT, client);
571 } 571 }
572 572
573 void SetThreadedCompositorEnabled(bool enabled) {
574 test_environment->webkit_platform_support()->
575 set_threaded_compositing_enabled(enabled);
576 }
577
573 void RegisterMockedURL(const WebKit::WebURL& url, 578 void RegisterMockedURL(const WebKit::WebURL& url,
574 const WebKit::WebURLResponse& response, 579 const WebKit::WebURLResponse& response,
575 const WebKit::WebString& file_path) { 580 const WebKit::WebString& file_path) {
576 test_environment->webkit_platform_support()->url_loader_factory()-> 581 test_environment->webkit_platform_support()->url_loader_factory()->
577 RegisterURL(url, response, file_path); 582 RegisterURL(url, response, file_path);
578 } 583 }
579 584
580 void RegisterMockedErrorURL(const WebKit::WebURL& url, 585 void RegisterMockedErrorURL(const WebKit::WebURL& url,
581 const WebKit::WebURLResponse& response, 586 const WebKit::WebURLResponse& response,
582 const WebKit::WebURLError& error) { 587 const WebKit::WebURLError& error) {
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 // Logging 940 // Logging
936 void EnableWebCoreLogChannels(const std::string& channels) { 941 void EnableWebCoreLogChannels(const std::string& channels) {
937 webkit_glue::EnableWebCoreLogChannels(channels); 942 webkit_glue::EnableWebCoreLogChannels(channels);
938 } 943 }
939 944
940 void SetGamepadData(const WebKit::WebGamepads& pads) { 945 void SetGamepadData(const WebKit::WebGamepads& pads) {
941 test_environment->webkit_platform_support()->setGamepadData(pads); 946 test_environment->webkit_platform_support()->setGamepadData(pads);
942 } 947 }
943 948
944 } // namespace webkit_support 949 } // namespace webkit_support
OLDNEW
« no previous file with comments | « webkit/support/webkit_support.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698