Index: cc/test/test_image_factory.h |
diff --git a/cc/test/test_image_factory.h b/cc/test/test_image_factory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fcef3906a1f751fec8be0187ab448d7ee578ea3b |
--- /dev/null |
+++ b/cc/test/test_image_factory.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CC_TEST_TEST_IMAGE_FACTORY_H_ |
+#define CC_TEST_TEST_IMAGE_FACTORY_H_ |
+ |
+#include "gpu/command_buffer/service/image_factory.h" |
+ |
+namespace cc { |
+ |
+class TestImageFactory : public gpu::ImageFactory { |
+ public: |
+ TestImageFactory(); |
+ ~TestImageFactory() override; |
+ |
+ // Overridden from gpu::ImageFactory: |
+ scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( |
+ const gfx::GpuMemoryBufferHandle& handle, |
+ const gfx::Size& size, |
+ gfx::GpuMemoryBuffer::Format format, |
+ unsigned internalformat, |
+ int client_id) override; |
+ |
+ private: |
+ DISALLOW_COPY_AND_ASSIGN(TestImageFactory); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_TEST_TEST_IMAGE_FACTORY_H_ |