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

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

Issue 1425533006: cc: Add flag to specify to ResourceProvider to always use GMBs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test and build Created 5 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 | « content/test/fake_compositor_dependencies.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 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 28 matching lines...) Expand all
39 } 39 }
40 40
41 bool FakeCompositorDependencies::IsZeroCopyEnabled() { 41 bool FakeCompositorDependencies::IsZeroCopyEnabled() {
42 return true; 42 return true;
43 } 43 }
44 44
45 bool FakeCompositorDependencies::IsPartialRasterEnabled() { 45 bool FakeCompositorDependencies::IsPartialRasterEnabled() {
46 return false; 46 return false;
47 } 47 }
48 48
49 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() {
50 return false;
51 }
52
49 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { 53 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() {
50 return false; 54 return false;
51 } 55 }
52 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { 56 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() {
53 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, 57 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1,
54 GL_TEXTURE_2D); 58 GL_TEXTURE_2D);
55 } 59 }
56 60
57 scoped_refptr<base::SingleThreadTaskRunner> 61 scoped_refptr<base::SingleThreadTaskRunner>
58 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { 62 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 100
97 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { 101 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() {
98 return false; 102 return false;
99 } 103 }
100 104
101 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { 105 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() {
102 return true; 106 return true;
103 } 107 }
104 108
105 } // namespace content 109 } // namespace content
OLDNEW
« no previous file with comments | « content/test/fake_compositor_dependencies.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698