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

Unified Diff: cc/test/test_in_process_context_provider.h

Issue 665463003: gpu: Add CHROMIUM_image support to in-process command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-gpu-memory-buffer-factory-to-gpu-image-factory
Patch Set: make code more consistent with command buffer proxy Created 6 years, 2 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
Index: cc/test/test_in_process_context_provider.h
diff --git a/cc/test/test_in_process_context_provider.h b/cc/test/test_in_process_context_provider.h
index 5e6a9785bd095a676269bc15eee61b41556cc7f8..b4b5765be1392bbc50ced3c4f292d87c1df4b43d 100644
--- a/cc/test/test_in_process_context_provider.h
+++ b/cc/test/test_in_process_context_provider.h
@@ -6,6 +6,8 @@
#define CC_TEST_TEST_IN_PROCESS_CONTEXT_PROVIDER_H_
#include "cc/output/context_provider.h"
+#include "cc/test/test_gpu_memory_buffer_manager.h"
+#include "cc/test/test_image_factory.h"
#include "skia/ext/refptr.h"
class GrContext;
@@ -17,6 +19,9 @@ class GLInProcessContext;
namespace cc {
scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext();
+scoped_ptr<gpu::GLInProcessContext> CreateTestInProcessContext(
+ TestGpuMemoryBufferManager* gpu_memory_buffer_manager,
+ TestImageFactory* image_factory);
class TestInProcessContextProvider : public ContextProvider {
public:
@@ -42,6 +47,8 @@ class TestInProcessContextProvider : public ContextProvider {
virtual ~TestInProcessContextProvider();
private:
+ TestGpuMemoryBufferManager gpu_memory_buffer_manager_;
+ TestImageFactory image_factory_;
scoped_ptr<gpu::GLInProcessContext> context_;
skia::RefPtr<class GrContext> gr_context_;
};

Powered by Google App Engine
This is Rietveld 408576698