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

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

Issue 962723002: Change CHROMIUM_image declarations to support multi planar input. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reveman@ comments. Created 5 years, 9 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
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> CreateImageForGpuMemoryBuffers(
19 const gfx::GpuMemoryBufferHandle& handle, 19 const std::vector<gfx::GpuMemoryBufferHandle>& handles,
20 const gfx::Size& size, 20 const gfx::Size& size,
21 gfx::GpuMemoryBuffer::Format format, 21 const std::vector<gfx::GpuMemoryBuffer::Format>& formats,
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

Powered by Google App Engine
This is Rietveld 408576698