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

Unified Diff: cc/test/test_image_factory.h

Issue 683113005: Update from chromium https://crrev.com/302282 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.cc ('k') | cc/test/test_image_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « cc/test/test_gpu_memory_buffer_manager.cc ('k') | cc/test/test_image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698