cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / ui / gl / gl_image_ozone_native_pixmap.h
blobe164f39c2c3e68a52a8370ab86a4f071a14c9594
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.
5 #ifndef UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
8 #include "ui/gfx/gpu_memory_buffer.h"
9 #include "ui/gl/gl_image_egl.h"
10 #include "ui/ozone/public/native_pixmap.h"
12 namespace gfx {
14 class GL_EXPORT GLImageOzoneNativePixmap : public GLImageEGL {
15 public:
16 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat);
18 bool Initialize(ui::NativePixmap* pixmap, BufferFormat format);
20 // Overridden from GLImage:
21 unsigned GetInternalFormat() override;
22 void Destroy(bool have_context) override;
23 bool ScheduleOverlayPlane(AcceleratedWidget widget,
24 int z_order,
25 OverlayTransform transform,
26 const Rect& bounds_rect,
27 const RectF& crop_rect) override;
28 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
29 uint64_t process_tracing_id,
30 const std::string& dump_name) override;
32 protected:
33 ~GLImageOzoneNativePixmap() override;
35 private:
36 unsigned internalformat_;
37 scoped_refptr<ui::NativePixmap> pixmap_;
40 } // namespace gfx
42 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_