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

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

Issue 881513004: Add a command-line flag to set GPU rasterization multisampling. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cache msaa sample count to avoid double-parsing it. Created 5 years, 11 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') | 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/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
11 namespace content { 11 namespace content {
12 12
13 FakeCompositorDependencies::FakeCompositorDependencies() { 13 FakeCompositorDependencies::FakeCompositorDependencies() {
14 } 14 }
15 15
16 bool FakeCompositorDependencies::IsImplSidePaintingEnabled() { 16 bool FakeCompositorDependencies::IsImplSidePaintingEnabled() {
17 return true; 17 return true;
18 } 18 }
19 19
20 bool FakeCompositorDependencies::IsGpuRasterizationForced() { 20 bool FakeCompositorDependencies::IsGpuRasterizationForced() {
21 return false; 21 return false;
22 } 22 }
23 23
24 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() { 24 bool FakeCompositorDependencies::IsGpuRasterizationEnabled() {
25 return false; 25 return false;
26 } 26 }
27 27
28 int FakeCompositorDependencies::GetGpuRasterizationMSAASampleCount() {
29 return 0;
30 }
31
28 bool FakeCompositorDependencies::IsLcdTextEnabled() { 32 bool FakeCompositorDependencies::IsLcdTextEnabled() {
29 return false; 33 return false;
30 } 34 }
31 35
32 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() { 36 bool FakeCompositorDependencies::IsDistanceFieldTextEnabled() {
33 return false; 37 return false;
34 } 38 }
35 39
36 bool FakeCompositorDependencies::IsZeroCopyEnabled() { 40 bool FakeCompositorDependencies::IsZeroCopyEnabled() {
37 return false; 41 return false;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return nullptr; 82 return nullptr;
79 } 83 }
80 84
81 scoped_ptr<cc::BeginFrameSource> 85 scoped_ptr<cc::BeginFrameSource>
82 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) { 86 FakeCompositorDependencies::CreateExternalBeginFrameSource(int routing_id) {
83 double refresh_rate = 200.0; 87 double refresh_rate = 200.0;
84 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate)); 88 return make_scoped_ptr(new cc::FakeExternalBeginFrameSource(refresh_rate));
85 } 89 }
86 90
87 } // namespace content 91 } // 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