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

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

Issue 895763002: Add a command-line flag to enable threaded GPU rasterization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 "base/message_loop/message_loop_proxy.h" 7 #include "base/message_loop/message_loop_proxy.h"
8 #include "cc/test/fake_external_begin_frame_source.h" 8 #include "cc/test/fake_external_begin_frame_source.h"
9 #include "third_party/khronos/GLES2/gl2.h" 9 #include "third_party/khronos/GLES2/gl2.h"
10 10
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 } 47 }
48 48
49 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() { 49 bool FakeCompositorDependencies::IsElasticOverscrollEnabled() {
50 return false; 50 return false;
51 } 51 }
52 52
53 bool FakeCompositorDependencies::UseSingleThreadScheduler() { 53 bool FakeCompositorDependencies::UseSingleThreadScheduler() {
54 return use_single_thread_scheduler_; 54 return use_single_thread_scheduler_;
55 } 55 }
56 56
57 bool FakeCompositorDependencies::IsThreadedGpuRasterizationEnabled() {
58 return false;
59 }
60
57 uint32 FakeCompositorDependencies::GetImageTextureTarget() { 61 uint32 FakeCompositorDependencies::GetImageTextureTarget() {
58 return GL_TEXTURE_2D; 62 return GL_TEXTURE_2D;
59 } 63 }
60 64
61 scoped_refptr<base::SingleThreadTaskRunner> 65 scoped_refptr<base::SingleThreadTaskRunner>
62 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() { 66 FakeCompositorDependencies::GetCompositorMainThreadTaskRunner() {
63 return base::MessageLoopProxy::current(); 67 return base::MessageLoopProxy::current();
64 } 68 }
65 69
66 scoped_refptr<base::SingleThreadTaskRunner> 70 scoped_refptr<base::SingleThreadTaskRunner>
(...skipping 20 matching lines...) Expand all
87 return nullptr; 91 return nullptr;
88 } 92 }
89 93
90 scoped_ptr<cc::BeginFrameSource> 94 scoped_ptr<cc::BeginFrameSource>
91 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { 95 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) {
92 double refresh_rate = 200.0; 96 double refresh_rate = 200.0;
93 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); 97 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate));
94 } 98 }
95 99
96 } // namespace content 100 } // namespace content
OLDNEW
« content/renderer/render_thread_impl.h ('K') | « content/test/fake_compositor_dependencies.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698