third_party/re2: Remove remove-static-initializers.patch.
[chromium-blink-merge.git] / content / renderer / gpu / compositor_dependencies.h
blob9973a65cdf2619704ab693e4a3100483de1e606f
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_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h"
11 namespace base {
12 class SingleThreadTaskRunner;
15 namespace cc {
16 class BeginFrameSource;
17 class ContextProvider;
18 class SharedBitmapManager;
19 class TaskGraphRunner;
22 namespace gpu {
23 class GpuMemoryBufferManager;
26 namespace scheduler {
27 class RendererScheduler;
30 namespace content {
32 class CompositorDependencies {
33 public:
34 virtual bool IsImplSidePaintingEnabled() = 0;
35 virtual bool IsGpuRasterizationForced() = 0;
36 virtual bool IsGpuRasterizationEnabled() = 0;
37 virtual int GetGpuRasterizationMSAASampleCount() = 0;
38 virtual bool IsLcdTextEnabled() = 0;
39 virtual bool IsDistanceFieldTextEnabled() = 0;
40 virtual bool IsZeroCopyEnabled() = 0;
41 virtual bool IsOneCopyEnabled() = 0;
42 virtual bool IsElasticOverscrollEnabled() = 0;
43 // Only valid in single threaded mode.
44 virtual bool UseSingleThreadScheduler() = 0;
45 virtual uint32 GetImageTextureTarget() = 0;
46 virtual scoped_refptr<base::SingleThreadTaskRunner>
47 GetCompositorMainThreadTaskRunner() = 0;
48 // Returns null if the compositor is in single-threaded mode (ie. there is no
49 // compositor thread).
50 virtual scoped_refptr<base::SingleThreadTaskRunner>
51 GetCompositorImplThreadTaskRunner() = 0;
52 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
53 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
54 virtual scheduler::RendererScheduler* GetRendererScheduler() = 0;
55 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0;
56 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
57 int routing_id) = 0;
58 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
59 virtual bool IsGatherPixelRefsEnabled() = 0;
61 virtual ~CompositorDependencies() {}
64 } // namespace content
66 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_