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

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

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback Created 4 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
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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 return false; 53 return false;
54 } 54 }
55 55
56 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() { 56 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() {
57 return false; 57 return false;
58 } 58 }
59 59
60 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { 60 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() {
61 return true; 61 return true;
62 } 62 }
63 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { 63
64 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, 64 const cc::BufferToTextureTargetMap&
65 GL_TEXTURE_2D); 65 FakeCompositorDependencies::GetBufferToTextureTargetMap() {
66 return buffer_to_texture_target_map_;
66 } 67 }
67 68
68 scoped_refptr<base::SingleThreadTaskRunner> 69 scoped_refptr<base::SingleThreadTaskRunner>
69 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { 70 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() {
70 return base::ThreadTaskRunnerHandle::Get(); 71 return base::ThreadTaskRunnerHandle::Get();
71 } 72 }
72 73
73 scoped_refptr<base::SingleThreadTaskRunner> 74 scoped_refptr<base::SingleThreadTaskRunner>
74 FakeCompositorDependencies::GetCompositorImplThreadTaskRunner() { 75 FakeCompositorDependencies::GetCompositorImplThreadTaskRunner() {
75 return nullptr; // Currently never threaded compositing in unit tests. 76 return nullptr; // Currently never threaded compositing in unit tests.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 109
109 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { 110 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() {
110 return false; 111 return false;
111 } 112 }
112 113
113 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { 114 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() {
114 return true; 115 return true;
115 } 116 }
116 117
117 } // namespace content 118 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698