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

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

Issue 1861343002: Remove "reportWheelOverscroll" from Blink settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed unit tests and moved check to RenderWidget Created 4 years, 8 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/renderer/render_widget.cc ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "base/thread_task_runner_handle.h" 10 #include "base/thread_task_runner_handle.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 bool FakeCompositorDependencies::IsPartialRasterEnabled() { 47 bool FakeCompositorDependencies::IsPartialRasterEnabled() {
48 return false; 48 return false;
49 } 49 }
50 50
51 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() { 51 bool FakeCompositorDependencies::IsGpuMemoryBufferCompositorResourcesEnabled() {
52 return false; 52 return false;
53 } 53 }
54 54
55 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { 55 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() {
56 return false; 56 return true;
57 } 57 }
58 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() { 58 std::vector<unsigned> FakeCompositorDependencies::GetImageTextureTargets() {
59 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1, 59 return std::vector<unsigned>(static_cast<size_t>(gfx::BufferFormat::LAST) + 1,
60 GL_TEXTURE_2D); 60 GL_TEXTURE_2D);
61 } 61 }
62 62
63 scoped_refptr<base::SingleThreadTaskRunner> 63 scoped_refptr<base::SingleThreadTaskRunner>
64 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { 64 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() {
65 return base::ThreadTaskRunnerHandle::Get(); 65 return base::ThreadTaskRunnerHandle::Get();
66 } 66 }
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() { 108 bool FakeCompositorDependencies::AreImageDecodeTasksEnabled() {
109 return false; 109 return false;
110 } 110 }
111 111
112 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() { 112 bool FakeCompositorDependencies::IsThreadedAnimationEnabled() {
113 return true; 113 return true;
114 } 114 }
115 115
116 } // namespace content 116 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | third_party/WebKit/Source/core/frame/Settings.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698