Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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. | |
| 4 | |
| 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_IMPL_H_ | |
| 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_IMPL_H_ | |
| 7 | |
| 8 #include "content/renderer/gpu/compositor_dependencies.h" | |
| 9 | |
| 10 namespace content { | |
| 11 class RenderThreadImpl; | |
| 12 | |
| 13 class CompositorDependenciesImpl : public CompositorDependencies { | |
| 14 public: | |
| 15 explicit CompositorDependenciesImpl(RenderThreadImpl* render_thread); | |
|
piman
2014/12/15 19:09:02
That works, or RenderThreadImpl could directly imp
| |
| 16 bool IsImplSidePaintingEnabled() override; | |
| 17 bool IsGpuRasterizationForced() override; | |
| 18 bool IsGpuRasterizationEnabled() override; | |
| 19 bool IsLcdTextEnabled() override; | |
| 20 bool IsDistanceFieldTextEnabled() override; | |
| 21 bool IsZeroCopyEnabled() override; | |
| 22 bool IsOneCopyEnabled() override; | |
| 23 uint32 GetImageTextureTarget() override; | |
| 24 scoped_refptr<base::SingleThreadTaskRunner> | |
| 25 GetCompositorMainThreadTaskRunner() override; | |
| 26 scoped_refptr<base::SingleThreadTaskRunner> | |
| 27 GetCompositorImplThreadTaskRunner() override; | |
| 28 cc::SharedBitmapManager* GetSharedBitmapManager() override; | |
| 29 gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() override; | |
| 30 RendererScheduler* GetRendererScheduler() override; | |
| 31 cc::ContextProvider* GetSharedMainThreadContextProvider() override; | |
| 32 scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( | |
| 33 int routing_id) override; | |
| 34 | |
| 35 private: | |
| 36 RenderThreadImpl* render_thread_; | |
| 37 }; | |
| 38 | |
| 39 } // namespace content | |
| 40 | |
| 41 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_IMPL_H_ | |
| OLD | NEW |