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

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

Issue 2148983002: gpu: Take surface handle into account when importing buffers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: avoid crash in DrmDeviceManager::GetDrmDevice when passed invalid widget Created 4 years, 5 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 | « no previous file | 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "gpu/command_buffer/service/image_factory.h" 9 #include "gpu/command_buffer/service/image_factory.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 class TestImageFactory : public gpu::ImageFactory { 13 class TestImageFactory : public gpu::ImageFactory {
14 public: 14 public:
15 TestImageFactory(); 15 TestImageFactory();
16 ~TestImageFactory() override; 16 ~TestImageFactory() override;
17 17
18 // Overridden from gpu::ImageFactory: 18 // Overridden from gpu::ImageFactory:
19 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer( 19 scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer(
20 const gfx::GpuMemoryBufferHandle& handle, 20 const gfx::GpuMemoryBufferHandle& handle,
21 const gfx::Size& size, 21 const gfx::Size& size,
22 gfx::BufferFormat format, 22 gfx::BufferFormat format,
23 unsigned internalformat, 23 unsigned internalformat,
24 int client_id) override; 24 int client_id,
25 gpu::SurfaceHandle surface_handle) override;
25 26
26 private: 27 private:
27 DISALLOW_COPY_AND_ASSIGN(TestImageFactory); 28 DISALLOW_COPY_AND_ASSIGN(TestImageFactory);
28 }; 29 };
29 30
30 } // namespace cc 31 } // namespace cc
31 32
32 #endif // CC_TEST_TEST_IMAGE_FACTORY_H_ 33 #endif // CC_TEST_TEST_IMAGE_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | cc/test/test_image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698