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

Side by Side Diff: ui/compositor/compositor_switches.cc

Issue 1186393004: gpu: Remove async texture uploads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 3 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
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | ui/gl/gl_bindings.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 "ui/compositor/compositor_switches.h" 5 #include "ui/compositor/compositor_switches.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 8
9 namespace switches { 9 namespace switches {
10 10
(...skipping 16 matching lines...) Expand all
27 } // namespace switches 27 } // namespace switches
28 28
29 namespace ui { 29 namespace ui {
30 30
31 bool IsUIZeroCopyEnabled() { 31 bool IsUIZeroCopyEnabled() {
32 const base::CommandLine& command_line = 32 const base::CommandLine& command_line =
33 *base::CommandLine::ForCurrentProcess(); 33 *base::CommandLine::ForCurrentProcess();
34 return command_line.HasSwitch(switches::kUIEnableZeroCopy); 34 return command_line.HasSwitch(switches::kUIEnableZeroCopy);
35 } 35 }
36 36
37 bool IsUIOneCopyEnabled() {
38 // One-copy is on by default unless zero copy is enabled.
39 return !IsUIZeroCopyEnabled();
40 }
41
42 } // namespace ui 37 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/compositor_switches.h ('k') | ui/gl/gl_bindings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698