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

Side by Side Diff: content/renderer/renderer_blink_platform_impl.cc

Issue 2391753003: Stop exposing --disable-gpu-compositing as a Blink RuntimeEnabledFeature (Closed)
Patch Set: simplify changes Created 4 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/renderer/renderer_blink_platform_impl.h" 5 #include "content/renderer/renderer_blink_platform_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 667 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 return WebString::fromUTF8(storage::GetIdentifierFromOrigin( 678 return WebString::fromUTF8(storage::GetIdentifierFromOrigin(
679 WebSecurityOriginToGURL(origin))); 679 WebSecurityOriginToGURL(origin)));
680 } 680 }
681 681
682 bool RendererBlinkPlatformImpl::isThreadedCompositingEnabled() { 682 bool RendererBlinkPlatformImpl::isThreadedCompositingEnabled() {
683 RenderThreadImpl* thread = RenderThreadImpl::current(); 683 RenderThreadImpl* thread = RenderThreadImpl::current();
684 // thread can be NULL in tests. 684 // thread can be NULL in tests.
685 return thread && thread->compositor_task_runner().get(); 685 return thread && thread->compositor_task_runner().get();
686 } 686 }
687 687
688 bool RendererBlinkPlatformImpl::isGPUCompositingEnabled() {
689 const base::CommandLine& command_line =
690 *base::CommandLine::ForCurrentProcess();
691 return !command_line.HasSwitch(switches::kDisableGpuCompositing);
692 }
693
688 bool RendererBlinkPlatformImpl::isThreadedAnimationEnabled() { 694 bool RendererBlinkPlatformImpl::isThreadedAnimationEnabled() {
689 RenderThreadImpl* thread = RenderThreadImpl::current(); 695 RenderThreadImpl* thread = RenderThreadImpl::current();
690 return thread ? thread->IsThreadedAnimationEnabled() : true; 696 return thread ? thread->IsThreadedAnimationEnabled() : true;
691 } 697 }
692 698
693 double RendererBlinkPlatformImpl::audioHardwareSampleRate() { 699 double RendererBlinkPlatformImpl::audioHardwareSampleRate() {
694 return GetAudioHardwareParams().sample_rate(); 700 return GetAudioHardwareParams().sample_rate();
695 } 701 }
696 702
697 size_t RendererBlinkPlatformImpl::audioHardwareBufferSize() { 703 size_t RendererBlinkPlatformImpl::audioHardwareBufferSize() {
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1346 return &trial_token_validator_; 1352 return &trial_token_validator_;
1347 } 1353 }
1348 1354
1349 void RendererBlinkPlatformImpl::workerContextCreated( 1355 void RendererBlinkPlatformImpl::workerContextCreated(
1350 const v8::Local<v8::Context>& worker) { 1356 const v8::Local<v8::Context>& worker) {
1351 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread( 1357 GetContentClient()->renderer()->DidInitializeWorkerContextOnWorkerThread(
1352 worker); 1358 worker);
1353 } 1359 }
1354 1360
1355 } // namespace content 1361 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.h ('k') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698