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

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

Issue 896423003: cc: Fix multiple outstanding output surface requests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2272
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
(...skipping 17 matching lines...) Expand all
28 class CompositorDependencies { 28 class CompositorDependencies {
29 public: 29 public:
30 virtual bool IsImplSidePaintingEnabled() = 0; 30 virtual bool IsImplSidePaintingEnabled() = 0;
31 virtual bool IsGpuRasterizationForced() = 0; 31 virtual bool IsGpuRasterizationForced() = 0;
32 virtual bool IsGpuRasterizationEnabled() = 0; 32 virtual bool IsGpuRasterizationEnabled() = 0;
33 virtual bool IsLcdTextEnabled() = 0; 33 virtual bool IsLcdTextEnabled() = 0;
34 virtual bool IsDistanceFieldTextEnabled() = 0; 34 virtual bool IsDistanceFieldTextEnabled() = 0;
35 virtual bool IsZeroCopyEnabled() = 0; 35 virtual bool IsZeroCopyEnabled() = 0;
36 virtual bool IsOneCopyEnabled() = 0; 36 virtual bool IsOneCopyEnabled() = 0;
37 virtual bool IsElasticOverscrollEnabled() = 0; 37 virtual bool IsElasticOverscrollEnabled() = 0;
38 // Only valid in single threaded mode.
39 virtual bool UseSingleThreadScheduler() = 0;
38 virtual uint32 GetImageTextureTarget() = 0; 40 virtual uint32 GetImageTextureTarget() = 0;
39 virtual scoped_refptr<base::SingleThreadTaskRunner> 41 virtual scoped_refptr<base::SingleThreadTaskRunner>
40 GetCompositorMainThreadTaskRunner() = 0; 42 GetCompositorMainThreadTaskRunner() = 0;
41 // Returns null if the compositor is in single-threaded mode (ie. there is no 43 // Returns null if the compositor is in single-threaded mode (ie. there is no
42 // compositor thread). 44 // compositor thread).
43 virtual scoped_refptr<base::SingleThreadTaskRunner> 45 virtual scoped_refptr<base::SingleThreadTaskRunner>
44 GetCompositorImplThreadTaskRunner() = 0; 46 GetCompositorImplThreadTaskRunner() = 0;
45 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 47 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
46 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 48 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
47 virtual RendererScheduler* GetRendererScheduler() = 0; 49 virtual RendererScheduler* GetRendererScheduler() = 0;
48 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0; 50 virtual cc::ContextProvider* GetSharedMainThreadContextProvider() = 0;
49 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 51 virtual scoped_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
50 int routing_id) = 0; 52 int routing_id) = 0;
51 53
52 virtual ~CompositorDependencies() {} 54 virtual ~CompositorDependencies() {}
53 }; 55 };
54 56
55 } // namespace content 57 } // namespace content
56 58
57 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 59 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | content/renderer/gpu/render_widget_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698