blob: ca9dc184dd87bab1369ab1c04507d3216467e7fd [file] [log] [blame]
// Copyright 2014 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_VIZ_TEST_TEST_IMAGE_FACTORY_H_
#define COMPONENTS_VIZ_TEST_TEST_IMAGE_FACTORY_H_
#include "gpu/command_buffer/service/image_factory.h"
namespace viz {
class TestImageFactory : public gpu::ImageFactory {
public:
TestImageFactory();
TestImageFactory(const TestImageFactory&) = delete;
~TestImageFactory() override;
TestImageFactory& operator=(const TestImageFactory&) = delete;
// Overridden from gpu::ImageFactory:
scoped_refptr<gl::GLImage> CreateImageForGpuMemoryBuffer(
gfx::GpuMemoryBufferHandle handle,
const gfx::Size& size,
gfx::BufferFormat format,
const gfx::ColorSpace& color_space,
gfx::BufferPlane plane,
int client_id,
gpu::SurfaceHandle surface_handle) override;
};
} // namespace viz
#endif // COMPONENTS_VIZ_TEST_TEST_IMAGE_FACTORY_H_