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

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

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 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
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | content/test/fake_compositor_dependencies.cc » ('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 #ifndef CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H_ 5 #ifndef CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H_
6 #define CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H_ 6 #define CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/buffer_to_texture_target_map.h" 9 #include "cc/output/buffer_to_texture_target_map.h"
10 #include "cc/test/test_task_graph_runner.h" 10 #include "cc/test/test_task_graph_runner.h"
11 #include "content/renderer/gpu/compositor_dependencies.h" 11 #include "content/renderer/gpu/compositor_dependencies.h"
12 #include "third_party/WebKit/public/platform/scheduler/test/fake_renderer_schedu ler.h" 12 #include "third_party/WebKit/public/platform/scheduler/test/fake_renderer_schedu ler.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 class FakeCompositorDependencies : public CompositorDependencies { 16 class FakeCompositorDependencies : public CompositorDependencies {
17 public: 17 public:
18 FakeCompositorDependencies(); 18 FakeCompositorDependencies();
19 ~FakeCompositorDependencies() override; 19 ~FakeCompositorDependencies() override;
20 20
21 // CompositorDependencies implementation. 21 // CompositorDependencies implementation.
22 bool IsGpuRasterizationForced() override; 22 bool IsGpuRasterizationForced() override;
23 bool IsGpuRasterizationEnabled() override;
24 bool IsAsyncWorkerContextEnabled() override; 23 bool IsAsyncWorkerContextEnabled() override;
25 int GetGpuRasterizationMSAASampleCount() override; 24 int GetGpuRasterizationMSAASampleCount() override;
26 bool IsLcdTextEnabled() override; 25 bool IsLcdTextEnabled() override;
27 bool IsDistanceFieldTextEnabled() override; 26 bool IsDistanceFieldTextEnabled() override;
28 bool IsZeroCopyEnabled() override; 27 bool IsZeroCopyEnabled() override;
29 bool IsPartialRasterEnabled() override; 28 bool IsPartialRasterEnabled() override;
30 bool IsGpuMemoryBufferCompositorResourcesEnabled() override; 29 bool IsGpuMemoryBufferCompositorResourcesEnabled() override;
31 bool IsElasticOverscrollEnabled() override; 30 bool IsElasticOverscrollEnabled() override;
32 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override; 31 const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() override;
33 scoped_refptr<base::SingleThreadTaskRunner> 32 scoped_refptr<base::SingleThreadTaskRunner>
(...skipping 10 matching lines...) Expand all
44 cc::TestTaskGraphRunner task_graph_runner_; 43 cc::TestTaskGraphRunner task_graph_runner_;
45 blink::scheduler::FakeRendererScheduler renderer_scheduler_; 44 blink::scheduler::FakeRendererScheduler renderer_scheduler_;
46 cc::BufferToTextureTargetMap buffer_to_texture_target_map_; 45 cc::BufferToTextureTargetMap buffer_to_texture_target_map_;
47 46
48 DISALLOW_COPY_AND_ASSIGN(FakeCompositorDependencies); 47 DISALLOW_COPY_AND_ASSIGN(FakeCompositorDependencies);
49 }; 48 };
50 49
51 } // namespace content 50 } // namespace content
52 51
53 #endif // CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H_ 52 #endif // CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H_
OLDNEW
« no previous file with comments | « content/shell/app/shell_main_delegate.cc ('k') | content/test/fake_compositor_dependencies.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698