| Index: content/renderer/gpu/compositor_dependencies.h
|
| diff --git a/content/renderer/gpu/compositor_dependencies.h b/content/renderer/gpu/compositor_dependencies.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..d8bb4f09854874b9dc5c3e894c18c5d98e2ea16f
|
| --- /dev/null
|
| +++ b/content/renderer/gpu/compositor_dependencies.h
|
| @@ -0,0 +1,56 @@
|
| +// Copyright 2014 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
|
| +#define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| +
|
| +namespace base {
|
| +class SingleThreadTaskRunner;
|
| +}
|
| +
|
| +namespace cc {
|
| +class BeginFrameSource;
|
| +class ContextProvider;
|
| +class SharedBitmapManager;
|
| +}
|
| +
|
| +namespace gpu {
|
| +class GpuMemoryBufferManager;
|
| +}
|
| +
|
| +namespace content {
|
| +class RendererScheduler;
|
| +
|
| +class CompositorDependencies {
|
| + public:
|
| + virtual bool IsImplSidePaintingEnabled() = 0;
|
| + virtual bool IsGpuRasterizationForced() = 0;
|
| + virtual bool IsGpuRasterizationEnabled() = 0;
|
| + virtual bool IsLcdTextEnabled() = 0;
|
| + virtual bool IsDistanceFieldTextEnabled() = 0;
|
| + virtual bool IsZeroCopyEnabled() = 0;
|
| + virtual bool IsOneCopyEnabled() = 0;
|
| + virtual uint32 GetImageTextureTarget() = 0;
|
| + virtual scoped_refptr<base::SingleThreadTaskRunner>
|
| + GetCompositorMainThreadTaskRunner() = 0;
|
| + // Returns null if the compositor is in single-threaded mode (ie. there is no
|
| + // compositor thread).
|
| + virtual scoped_refptr<base::SingleThreadTaskRunner>
|
| + GetCompositorImplThreadTaskRunner() = 0;
|
| + virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
|
| + virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
|
| + virtual RendererScheduler* GetRendererScheduler() = 0;
|
| + virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0;
|
| + virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
|
| + int routing_id) = 0;
|
| +
|
| + virtual ~CompositorDependencies() {}
|
| +};
|
| +
|
| +} // namespace content
|
| +
|
| +#endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
|
|
|