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

Unified Diff: ui/gfx/ozone/impl/buffer_generator_ozone.h

Issue 26866006: [Ozone] Adding a software surface implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
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_
« no previous file with comments | « no previous file | ui/gfx/ozone/impl/buffer_generator_ozone.cc » ('j') | ui/gfx/ozone/impl/software_surface_ozone.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698