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

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

Issue 1920163005: Split //ui/gl into //ui/gl + //ui/gi/init. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 7 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_image_memory.h ('k') | ui/gl/gl_image_ref_counted_memory.h » ('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 2015 The Chromium Authors. All rights reserved. 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 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_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 5 #ifndef UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 6 #define UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "ui/gfx/buffer_types.h" 10 #include "ui/gfx/buffer_types.h"
11 #include "ui/gl/gl_export.h"
11 #include "ui/gl/gl_image_egl.h" 12 #include "ui/gl/gl_image_egl.h"
12 #include "ui/ozone/public/native_pixmap.h" 13 #include "ui/ozone/public/native_pixmap.h"
13 14
14 namespace gfx { 15 namespace gfx {
15 16
16 class GL_EXPORT GLImageOzoneNativePixmap : public gl::GLImageEGL { 17 class GL_EXPORT GLImageOzoneNativePixmap : public gl::GLImageEGL {
17 public: 18 public:
18 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat); 19 GLImageOzoneNativePixmap(const Size& size, unsigned internalformat);
19 20
20 bool Initialize(ui::NativePixmap* pixmap, BufferFormat format); 21 bool Initialize(ui::NativePixmap* pixmap, BufferFormat format);
(...skipping 15 matching lines...) Expand all
36 ~GLImageOzoneNativePixmap() override; 37 ~GLImageOzoneNativePixmap() override;
37 38
38 private: 39 private:
39 unsigned internalformat_; 40 unsigned internalformat_;
40 scoped_refptr<ui::NativePixmap> pixmap_; 41 scoped_refptr<ui::NativePixmap> pixmap_;
41 }; 42 };
42 43
43 } // namespace gfx 44 } // namespace gfx
44 45
45 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_ 46 #endif // UI_GL_GL_IMAGE_OZONE_NATIVE_PIXMAP_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_memory.h ('k') | ui/gl/gl_image_ref_counted_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698