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

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

Issue 665463003: gpu: Add CHROMIUM_image support to in-process command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-gpu-memory-buffer-factory-to-gpu-image-factory
Patch Set: make code more consistent with command buffer proxy 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CC_TEST_TEST_IMAGE_FACTORY_H_
6 #define CC_TEST_TEST_IMAGE_FACTORY_H_
7
8 #include "gpu/command_buffer/service/image_factory.h"
9
10 namespace cc {
11
12 class TestImageFactory : public gpu::ImageFactory {
13 public:
14 TestImageFactory();
15 virtual ~TestImageFactory();
16
17 // Overridden from gpu::ImageFactory:
18 virtual scoped_refptr<gfx::GLImage> CreateImageForGpuMemoryBuffer(
19 const gfx::GpuMemoryBufferHandle& handle,
20 const gfx::Size& size,
21 gfx::GpuMemoryBuffer::Format format,
22 unsigned internalformat,
23 int client_id) override;
24 };
no sievers 2014/10/17 21:16:50 nit: private: DISALLOW_COPY_AND_ASSIGN()
reveman 2014/10/17 22:36:17 Done. Also in TestGpuMemoryBufferManager.
25
26 } // namespace cc
27
28 #endif // CC_TEST_TEST_IMAGE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698