| Index: ui/gfx/ozone/impl/buffer_generator_ozone.h
|
| diff --git a/ui/gfx/ozone/impl/buffer_generator_ozone.h b/ui/gfx/ozone/impl/buffer_generator_ozone.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..74576760dab49bf2194d299f405324713bec62a2
|
| --- /dev/null
|
| +++ b/ui/gfx/ozone/impl/buffer_generator_ozone.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright (c) 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef UI_GFX_OZONE_IMPL_BUFFER_GENERATOR_OZONE_H_
|
| +#define UI_GFX_OZONE_IMPL_BUFFER_GENERATOR_OZONE_H_
|
| +
|
| +#include "base/basictypes.h"
|
| +
|
| +namespace gfx {
|
| +
|
| +class DrmSkBitmapOzone;
|
| +
|
| +// Generates the backing buffers. Using a generator to allow injecting different
|
| +// implementations of the buffer (for example, mocks when testing).
|
| +class BufferGeneratorOzone {
|
| + public:
|
| + BufferGeneratorOzone();
|
| + virtual ~BufferGeneratorOzone();
|
| +
|
| + // Creates an un-initialized buffer.
|
| + virtual DrmSkBitmapOzone* CreateBuffer(int fd);
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(BufferGeneratorOzone);
|
| +};
|
| +
|
| +} // namespace gfx
|
| +
|
| +#endif // UI_GFX_OZONE_IMPL_BUFFER_GENERATOR_OZONE_H_
|
|
|