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

Side by Side Diff: content/renderer/gpu/compositor_dependencies_impl.h

Issue 801973002: Introduce CompositorDependencies for RenderWidgetCompositor. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compdep: move-compositordepsimpl-to-separate-file Created 6 years 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
OLDNEW
(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_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_dependencies.h ('k') | content/renderer/gpu/compositor_dependencies_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698