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

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: build fix of cast_shell_linux 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_linux_dma_buffer.h"
10 #include "ui/ozone/public/native_pixmap.h"
11
12 namespace gfx {
13
14 class GL_EXPORT GLImageOzoneNativePixmap : public GLImageLinuxDMABuffer {
reveman 2015/07/28 19:11:17 It's confusing to inherit from GLImageLinuxDMABuff
dshwang 2015/07/29 13:23:09 Good point! This class inherits GLImageEGL and rem
15 public:
16 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat);
17 bool Initialize(scoped_refptr<ui::NativePixmap> pixmap,
reveman 2015/07/28 19:11:17 nit: blank line after ctor and ui::NativePixmap* i
dshwang 2015/07/29 13:23:09 blank line after ctor: Done. ui::NativePixmap* ins
reveman 2015/07/29 14:16:41 We don't use scoped_refptr for that purpose in chr
dshwang 2015/07/29 15:15:04 I see. Done.
18 GpuMemoryBuffer::Format format);
19
20 void Destroy(bool have_context) override;
reveman 2015/07/28 19:11:17 Above this line, add: // Overridden from GLImage:
dshwang 2015/07/29 13:23:10 Done.
21 bool ScheduleOverlayPlane(AcceleratedWidget widget,
22 int z_order,
23 OverlayTransform transform,
24 const Rect& bounds_rect,
25 const RectF& crop_rect) override;
26
27 protected:
28 ~GLImageOzoneNativePixmap() override;
29
30 private:
31 scoped_refptr<ui::NativePixmap> pixmap_;
32 };
33
34 } // namespace gfx
35
36 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698