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

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

Issue 2687093002: Rename GLImageOzoneNativePixmap to GLImageNativePixmap and move it from ui/ozone/gl to ui/gl (Closed)
Patch Set: Rebase Created 3 years, 9 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/BUILD.gn ('k') | ui/gl/gl_image_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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 5 #ifndef UI_GL_GL_IMAGE_NATIVE_PIXMAP_H_
6 #define UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 6 #define UI_GL_GL_IMAGE_NATIVE_PIXMAP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "ui/gfx/buffer_types.h"
13 #include "ui/gfx/native_pixmap.h" 12 #include "ui/gfx/native_pixmap.h"
13 #include "ui/gl/gl_export.h"
14 #include "ui/gl/gl_image_egl.h" 14 #include "ui/gl/gl_image_egl.h"
15 #include "ui/ozone/gl/ozone_gl_export.h"
16 15
17 namespace ui { 16 namespace ui {
Julien Isorce 2017/03/22 17:33:52 sadrul@, should I change namespace from ui to gl h
sadrul 2017/03/22 17:35:11 Yes please.
18 17
19 class OZONE_GL_EXPORT GLImageOzoneNativePixmap : public gl::GLImageEGL { 18 class GL_EXPORT GLImageNativePixmap : public gl::GLImageEGL {
20 public: 19 public:
21 GLImageOzoneNativePixmap(const gfx::Size& size, unsigned internalformat); 20 GLImageNativePixmap(const gfx::Size& size, unsigned internalformat);
22 21
23 bool Initialize(NativePixmap* pixmap, gfx::BufferFormat format); 22 bool Initialize(NativePixmap* pixmap, gfx::BufferFormat format);
24 23
25 // Overridden from GLImage: 24 // Overridden from GLImage:
26 unsigned GetInternalFormat() override; 25 unsigned GetInternalFormat() override;
27 bool CopyTexImage(unsigned target) override; 26 bool CopyTexImage(unsigned target) override;
28 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 27 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
29 int z_order, 28 int z_order,
30 gfx::OverlayTransform transform, 29 gfx::OverlayTransform transform,
31 const gfx::Rect& bounds_rect, 30 const gfx::Rect& bounds_rect,
32 const gfx::RectF& crop_rect) override; 31 const gfx::RectF& crop_rect) override;
33 void Flush() override; 32 void Flush() override;
34 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 33 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
35 uint64_t process_tracing_id, 34 uint64_t process_tracing_id,
36 const std::string& dump_name) override; 35 const std::string& dump_name) override;
37 36
38 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format); 37 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
39 38
40 protected: 39 protected:
41 ~GLImageOzoneNativePixmap() override; 40 ~GLImageNativePixmap() override;
42 41
43 private: 42 private:
44 unsigned internalformat_; 43 unsigned internalformat_;
45 scoped_refptr<NativePixmap> pixmap_; 44 scoped_refptr<NativePixmap> pixmap_;
46 bool has_image_flush_external_; 45 bool has_image_flush_external_;
47 }; 46 };
48 47
49 } // namespace ui 48 } // namespace ui
50 49
51 #endif // UI_OZONE_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 50 #endif // UI_GL_GL_IMAGE_NATIVE_PIXMAP_H_
OLDNEW
« no previous file with comments | « ui/gl/BUILD.gn ('k') | ui/gl/gl_image_native_pixmap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698