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

Side by Side Diff: content/browser/gpu/compositor_util.cc

Issue 2488193002: Revert "Reland of Default enable main frame before activation and remove finch experiment. (patchse… (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | content/public/common/content_features.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 (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/gpu/compositor_util.h" 5 #include "content/browser/gpu/compositor_util.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <memory> 9 #include <memory>
10 #include <utility> 10 #include <utility>
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 308
309 const base::CommandLine& command_line = 309 const base::CommandLine& command_line =
310 *base::CommandLine::ForCurrentProcess(); 310 *base::CommandLine::ForCurrentProcess();
311 311
312 if (command_line.HasSwitch(cc::switches::kDisableMainFrameBeforeActivation)) 312 if (command_line.HasSwitch(cc::switches::kDisableMainFrameBeforeActivation))
313 return false; 313 return false;
314 314
315 if (command_line.HasSwitch(cc::switches::kEnableMainFrameBeforeActivation)) 315 if (command_line.HasSwitch(cc::switches::kEnableMainFrameBeforeActivation))
316 return true; 316 return true;
317 317
318 return true; 318 return base::FeatureList::IsEnabled(features::kMainFrameBeforeActivation);
319 } 319 }
320 320
321 base::DictionaryValue* GetFeatureStatus() { 321 base::DictionaryValue* GetFeatureStatus() {
322 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance(); 322 GpuDataManagerImpl* manager = GpuDataManagerImpl::GetInstance();
323 std::string gpu_access_blocked_reason; 323 std::string gpu_access_blocked_reason;
324 bool gpu_access_blocked = 324 bool gpu_access_blocked =
325 !manager->GpuAccessAllowed(&gpu_access_blocked_reason); 325 !manager->GpuAccessAllowed(&gpu_access_blocked_reason);
326 326
327 base::DictionaryValue* feature_status_dict = new base::DictionaryValue(); 327 base::DictionaryValue* feature_status_dict = new base::DictionaryValue();
328 328
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 } 413 }
414 } 414 }
415 return problem_list; 415 return problem_list;
416 } 416 }
417 417
418 std::vector<std::string> GetDriverBugWorkarounds() { 418 std::vector<std::string> GetDriverBugWorkarounds() {
419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds(); 419 return GpuDataManagerImpl::GetInstance()->GetDriverBugWorkarounds();
420 } 420 }
421 421
422 } // namespace content 422 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_features.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698