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

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

Issue 2120713002: Fix use_image_texture_target inconsistencies (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix content browsertests Created 4 years, 5 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
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 <memory> 8 #include <memory>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "cc/output/renderer_settings.h"
12 13
13 namespace base { 14 namespace base {
14 class SingleThreadTaskRunner; 15 class SingleThreadTaskRunner;
15 } 16 }
16 17
17 namespace cc { 18 namespace cc {
18 class BeginFrameSource; 19 class BeginFrameSource;
19 class ContextProvider; 20 class ContextProvider;
20 class ImageSerializationProcessor; 21 class ImageSerializationProcessor;
21 class SharedBitmapManager; 22 class SharedBitmapManager;
(...skipping 15 matching lines...) Expand all
37 virtual bool IsGpuRasterizationForced() = 0; 38 virtual bool IsGpuRasterizationForced() = 0;
38 virtual bool IsGpuRasterizationEnabled() = 0; 39 virtual bool IsGpuRasterizationEnabled() = 0;
39 virtual bool IsAsyncWorkerContextEnabled() = 0; 40 virtual bool IsAsyncWorkerContextEnabled() = 0;
40 virtual int GetGpuRasterizationMSAASampleCount() = 0; 41 virtual int GetGpuRasterizationMSAASampleCount() = 0;
41 virtual bool IsLcdTextEnabled() = 0; 42 virtual bool IsLcdTextEnabled() = 0;
42 virtual bool IsDistanceFieldTextEnabled() = 0; 43 virtual bool IsDistanceFieldTextEnabled() = 0;
43 virtual bool IsZeroCopyEnabled() = 0; 44 virtual bool IsZeroCopyEnabled() = 0;
44 virtual bool IsPartialRasterEnabled() = 0; 45 virtual bool IsPartialRasterEnabled() = 0;
45 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0; 46 virtual bool IsGpuMemoryBufferCompositorResourcesEnabled() = 0;
46 virtual bool IsElasticOverscrollEnabled() = 0; 47 virtual bool IsElasticOverscrollEnabled() = 0;
47 virtual std::vector<unsigned> GetImageTextureTargets() = 0; 48 virtual const cc::BufferToTextureTargetMap& GetBufferToTextureTargetMap() = 0;
48 virtual scoped_refptr<base::SingleThreadTaskRunner> 49 virtual scoped_refptr<base::SingleThreadTaskRunner>
49 GetCompositorMainThreadTaskRunner() = 0; 50 GetCompositorMainThreadTaskRunner() = 0;
50 // Returns null if the compositor is in single-threaded mode (ie. there is no 51 // Returns null if the compositor is in single-threaded mode (ie. there is no
51 // compositor thread). 52 // compositor thread).
52 virtual scoped_refptr<base::SingleThreadTaskRunner> 53 virtual scoped_refptr<base::SingleThreadTaskRunner>
53 GetCompositorImplThreadTaskRunner() = 0; 54 GetCompositorImplThreadTaskRunner() = 0;
54 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0; 55 virtual cc::SharedBitmapManager* GetSharedBitmapManager() = 0;
55 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0; 56 virtual gpu::GpuMemoryBufferManager* GetGpuMemoryBufferManager() = 0;
56 virtual scheduler::RendererScheduler* GetRendererScheduler() = 0; 57 virtual scheduler::RendererScheduler* GetRendererScheduler() = 0;
57 // TODO(danakj): This should be part of RenderThreadImpl (or some API from it 58 // TODO(danakj): This should be part of RenderThreadImpl (or some API from it
58 // to RenderWidget). But RenderThreadImpl is null in RenderViewTest. 59 // to RenderWidget). But RenderThreadImpl is null in RenderViewTest.
59 virtual std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource( 60 virtual std::unique_ptr<cc::BeginFrameSource> CreateExternalBeginFrameSource(
60 int routing_id) = 0; 61 int routing_id) = 0;
61 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0; 62 virtual cc::ImageSerializationProcessor* GetImageSerializationProcessor() = 0;
62 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0; 63 virtual cc::TaskGraphRunner* GetTaskGraphRunner() = 0;
63 virtual bool AreImageDecodeTasksEnabled() = 0; 64 virtual bool AreImageDecodeTasksEnabled() = 0;
64 virtual bool IsThreadedAnimationEnabled() = 0; 65 virtual bool IsThreadedAnimationEnabled() = 0;
65 66
66 virtual ~CompositorDependencies() {} 67 virtual ~CompositorDependencies() {}
67 }; 68 };
68 69
69 } // namespace content 70 } // namespace content
70 71
71 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_ 72 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_DEPENDENCIES_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_process_host_impl.cc ('k') | content/renderer/gpu/render_widget_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698