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

Side by Side 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: Merge gl_image_linux_dma_buffer into gl_image_ozone_native_pixmap Created 5 years, 4 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 2015 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 UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
7
8 #include "ui/gfx/gpu_memory_buffer.h"
9 #include "ui/gl/gl_image_egl.h"
10 #include "ui/ozone/public/native_pixmap.h"
11
12 namespace gfx {
13
14 class GL_EXPORT GLImageOzoneNativePixmap : public GLImageEGL {
15 public:
16 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat);
17
18 bool Initialize(scoped_refptr<ui::NativePixmap> pixmap,
19 GpuMemoryBuffer::Format format);
20
21 // Overridden from GLImage:
22 unsigned GetInternalFormat() override;
23 void Destroy(bool have_context) override;
24 bool ScheduleOverlayPlane(AcceleratedWidget widget,
25 int z_order,
26 OverlayTransform transform,
27 const Rect& bounds_rect,
28 const RectF& crop_rect) override;
29
30 protected:
31 ~GLImageOzoneNativePixmap() override;
32
33 private:
34 unsigned internalformat_;
35 scoped_refptr<ui::NativePixmap> pixmap_;
36 };
37
38 } // namespace gfx
39
40 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698