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

Side by Side Diff: content/test/fake_compositor_dependencies.cc

Issue 1227163017: cc: one copy is default as well as final fallback. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 5 years, 5 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 | « content/test/fake_compositor_dependencies.h ('k') | ui/compositor/compositor.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test/fake_compositor_dependencies.h" 5 #include "content/test/fake_compositor_dependencies.h"
6 6
7 #include "base/single_thread_task_runner.h" 7 #include "base/single_thread_task_runner.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "cc/test/fake_external_begin_frame_source.h" 9 #include "cc/test/fake_external_begin_frame_source.h"
10 #include "third_party/khronos/GLES2/gl2.h" 10 #include "third_party/khronos/GLES2/gl2.h"
(...skipping 23 matching lines...) Expand all
34 } 34 }
35 35
36 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { 36 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() {
37 return false; 37 return false;
38 } 38 }
39 39
40 bool FakeCompositorDependencies::IsZeroCopyEnabled() { 40 bool FakeCompositorDependencies::IsZeroCopyEnabled() {
41 return true; 41 return true;
42 } 42 }
43 43
44 bool FakeCompositorDependencies::IsOneCopyEnabled() {
45 return false;
46 }
47
48 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { 44 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() {
49 return false; 45 return false;
50 } 46 }
51 47
52 uint32 FakeCompositorDependencies::GetImageTextureTarget() { 48 uint32 FakeCompositorDependencies::GetImageTextureTarget() {
53 return GL_TEXTURE_2D; 49 return GL_TEXTURE_2D;
54 } 50 }
55 51
56 scoped_refptr<base::SingleThreadTaskRunner> 52 scoped_refptr<base::SingleThreadTaskRunner>
57 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { 53 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 87
92 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() { 88 cc::TaskGraphRunner* FakeCompositorDependencies::GetTaskGraphRunner() {
93 return &task_graph_runner_; 89 return &task_graph_runner_;
94 } 90 }
95 91
96 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() { 92 bool FakeCompositorDependencies::IsGatherPixelRefsEnabled() {
97 return false; 93 return false;
98 } 94 }
99 95
100 } // namespace content 96 } // namespace content
OLDNEW
« no previous file with comments | « content/test/fake_compositor_dependencies.h ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698