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

Unified Diff: cc/test/fake_resource_provider.h

Issue 2337913003: Fork cc::OutputSurface into cc::CompositorFrameSink. (Closed)
Patch Set: cfsfork: android-vulkan Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_proxy.cc ('k') | cc/test/layer_test_common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_resource_provider.h
diff --git a/cc/test/fake_resource_provider.h b/cc/test/fake_resource_provider.h
index bedbc86c8a5b7145c6d498761a80c33d2b322303..88576839b8d2d40629fd73c0181d799c576377e9 100644
--- a/cc/test/fake_resource_provider.h
+++ b/cc/test/fake_resource_provider.h
@@ -18,26 +18,26 @@ namespace cc {
class FakeResourceProvider : public ResourceProvider {
public:
static std::unique_ptr<FakeResourceProvider> Create(
- OutputSurface* output_surface,
+ ContextProvider* context_provider,
SharedBitmapManager* shared_bitmap_manager) {
return base::WrapUnique(new FakeResourceProvider(
- output_surface, shared_bitmap_manager, nullptr, nullptr, 0, 1, true,
+ context_provider, shared_bitmap_manager, nullptr, nullptr, 0, 1, true,
false, false, DefaultBufferToTextureTargetMapForTesting()));
}
static std::unique_ptr<FakeResourceProvider> Create(
- OutputSurface* output_surface,
+ ContextProvider* context_provider,
SharedBitmapManager* shared_bitmap_manager,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager) {
return base::WrapUnique(new FakeResourceProvider(
- output_surface, shared_bitmap_manager, gpu_memory_buffer_manager,
+ context_provider, shared_bitmap_manager, gpu_memory_buffer_manager,
nullptr, 0, 1, true, false, false,
DefaultBufferToTextureTargetMapForTesting()));
}
private:
FakeResourceProvider(
- OutputSurface* output_surface,
+ ContextProvider* context_provider,
SharedBitmapManager* shared_bitmap_manager,
gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
BlockingTaskRunner* blocking_main_thread_task_runner,
@@ -47,9 +47,7 @@ class FakeResourceProvider : public ResourceProvider {
bool use_gpu_memory_buffer_resources,
bool enable_color_correct_rendering,
const BufferToTextureTargetMap& buffer_to_texture_target_map)
- : ResourceProvider(output_surface->context_provider(), // TODO(danakj):
- // Remove output
- // surface dep
+ : ResourceProvider(context_provider,
shared_bitmap_manager,
gpu_memory_buffer_manager,
blocking_main_thread_task_runner,
« no previous file with comments | « cc/test/fake_proxy.cc ('k') | cc/test/layer_test_common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698