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

Side by Side Diff: cc/test/test_image_factory.h

Issue 1269503007: Unify graphics buffer format & usage enums for GpuMemoryBuffer & SurfaceFactoryOzone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add header to BUILD.gn Created 5 years, 4 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
« 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 CC_TEST_TEST_IMAGE_FACTORY_H_ 5 #ifndef CC_TEST_TEST_IMAGE_FACTORY_H_
6 #define CC_TEST_TEST_IMAGE_FACTORY_H_ 6 #define CC_TEST_TEST_IMAGE_FACTORY_H_
7 7
8 #include "gpu/command_buffer/service/image_factory.h" 8 #include "gpu/command_buffer/service/image_factory.h"
9 9
10 namespace cc { 10 namespace cc {
11 11
12 class TestImageFactory : public gpu::ImageFactory { 12 class TestImageFactory : public gpu::ImageFactory {
13 public: 13 public:
14 TestImageFactory(); 14 TestImageFactory();
15 ~TestImageFactory() override; 15 ~TestImageFactory() override;
16 16
17 // Overridden from gpu::ImageFactory: 17 // Overridden from gpu::ImageFactory:
18 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer( 18 scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer(
19 const gfx::GpuMemoryBufferHandle& handle, 19 const gfx::GpuMemoryBufferHandle& handle,
20 const gfx::Size& size, 20 const gfx::Size& size,
21 gfx::GpuMemoryBuffer::Format format, 21 gfx::BufferFormat format,
22 unsigned internalformat, 22 unsigned internalformat,
23 int client_id) override; 23 int client_id) override;
24 24
25 private: 25 private:
26 DISALLOW_COPY_AND_ASSIGN(TestImageFactory); 26 DISALLOW_COPY_AND_ASSIGN(TestImageFactory);
27 }; 27 };
28 28
29 } // namespace cc 29 } // namespace cc
30 30
31 #endif // CC_TEST_TEST_IMAGE_FACTORY_H_ 31 #endif // CC_TEST_TEST_IMAGE_FACTORY_H_
OLDNEW
« 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