Delete chrome.mediaGalleriesPrivate because the functionality unique to it has since...
[chromium-blink-merge.git] / content / test / fake_compositor_dependencies.h
blob1f335f8edcea4d4d90d7fab14525c8292dc18d0d
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H__
6 #define CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H__
8 #include "cc/test/test_gpu_memory_buffer_manager.h"
9 #include "cc/test/test_shared_bitmap_manager.h"
10 #include "content/renderer/gpu/compositor_dependencies.h"
11 #include "content/test/fake_renderer_scheduler.h"
13 namespace content {
15 class FakeCompositorDependencies : public CompositorDependencies {
16 public:
17 FakeCompositorDependencies();
19 // CompositorDependencies implementation.
20 bool IsImplSidePaintingEnabled() override;
21 bool IsGpuRasterizationForced() override;
22 bool IsGpuRasterizationEnabled() override;
23 bool IsLcdTextEnabled() override;
24 bool IsDistanceFieldTextEnabled() override;
25 bool IsZeroCopyEnabled() override;
26 bool IsOneCopyEnabled() override;
27 bool IsElasticOverscrollEnabled() override;
28 uint32 GetImageTextureTarget() override;
29 scoped_refptr<base::SingleThreadTaskRunner>
30 GetCompositorMainThreadTaskRunner() override;
31 scoped_refptr<base::SingleThreadTaskRunner>
32 GetCompositorImplThreadTaskRunner() override;
33 cc::SharedBitmapManager* GetSharedBitmapManager() override;
34 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override;
35 RendererScheduler* GetRendererScheduler() override;
36 cc::ContextProvider* GetSharedMainThreadContextProvider() override;
37 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
38 int routing_id) override;
40 private:
41 cc::TestSharedBitmapManager shared_bitmap_manager_;
42 cc::TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
43 FakeRendererScheduler renderer_scheduler_;
45 DISALLOW_COPY_AND_ASSIGN(FakeCompositorDependencies);
48 } // namespace content
50 #endif // CONTENT_TEST_FAKE_COMPOSITOR_DEPENDENCIES_H__