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

Unified Diff: ui/gl/gl_image_ozone_native_pixmap.h

Issue 1258713002: ozone: unify GpuMemoryBufferFactoryOzoneNativePixmap in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 5 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 side-by-side diff with in-line comments
Download patch
Index: ui/gl/gl_image_ozone_native_pixmap.h
diff --git a/ui/gl/gl_image_ozone_native_pixmap.h b/ui/gl/gl_image_ozone_native_pixmap.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f6b1b843cb5f155ba5b3bc06ca288d2fae76b72
--- /dev/null
+++ b/ui/gl/gl_image_ozone_native_pixmap.h
@@ -0,0 +1,22 @@
+// Copyright 2015 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_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
+#define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
+
+#include "ui/gfx/gpu_memory_buffer.h"
+#include "ui/gl/gl_image.h"
+#include "ui/ozone/public/native_pixmap.h"
+
+namespace gfx {
+
+GL_EXPORT scoped_refptr<GLImage> CreateImageForOzoneNativePixmap(
+ scoped_refptr<ui::NativePixmap> pixmap,
+ const Size& size,
+ GpuMemoryBuffer::Format format,
+ unsigned internalformat);
+
+} // namespace gfx
+
+#endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_

Powered by Google App Engine
This is Rietveld 408576698