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

Side by Side Diff: ui/gl/gl_image_ozone_native_pixmap.h

Issue 2102443003: Break //ui/gl/ dependency on //ui/ozone. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gl_bindings
Patch Set: Rebase again. Created 4 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 unified diff | Download patch
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <stdint.h>
9
10 #include "ui/gfx/buffer_types.h"
11 #include "ui/gl/gl_export.h"
12 #include "ui/gl/gl_image_egl.h"
13 #include "ui/ozone/public/native_pixmap.h"
14
15 namespace gl {
16
17 class GL_EXPORT GLImageOzoneNativePixmap : public GLImageEGL {
18 public:
19 GLImageOzoneNativePixmap(const gfx::Size& size, unsigned internalformat);
20
21 bool Initialize(ui::NativePixmap* pixmap, gfx::BufferFormat format);
22
23 // Overridden from GLImage:
24 unsigned GetInternalFormat() override;
25 void Destroy(bool have_context) override;
26 bool CopyTexImage(unsigned target) override;
27 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
28 int z_order,
29 gfx::OverlayTransform transform,
30 const gfx::Rect& bounds_rect,
31 const gfx::RectF& crop_rect) override;
32 void Flush() override;
33 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
34 uint64_t process_tracing_id,
35 const std::string& dump_name) override;
36
37 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
38
39 protected:
40 ~GLImageOzoneNativePixmap() override;
41
42 private:
43 unsigned internalformat_;
44 scoped_refptr<ui::NativePixmap> pixmap_;
45 bool has_image_flush_external_;
46 };
47
48 } // namespace gl
49
50 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
OLDNEW
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_image_ozone_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698