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

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

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 8 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_io_surface.cc ('k') | ui/gl/gl_image_memory.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_MEMORY_H_ 5 #ifndef UI_GL_GL_IMAGE_MEMORY_H_
6 #define UI_GL_GL_IMAGE_MEMORY_H_ 6 #define UI_GL_GL_IMAGE_MEMORY_H_
7 7
8 #include "ui/gl/gl_image.h" 8 #include "ui/gl/gl_image.h"
9 9
10 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \
11 defined(USE_OZONE)
12 #include <EGL/egl.h> 10 #include <EGL/egl.h>
13 #include <EGL/eglext.h> 11 #include <EGL/eglext.h>
14 #endif
15 12
16 #include "base/numerics/safe_math.h" 13 #include "base/numerics/safe_math.h"
17 #include "ui/gfx/gpu_memory_buffer.h" 14 #include "ui/gfx/gpu_memory_buffer.h"
18 15
19 namespace gfx { 16 namespace gfx {
20 17
21 class GL_EXPORT GLImageMemory : public GLImage { 18 class GL_EXPORT GLImageMemory : public GLImage {
22 public: 19 public:
23 GLImageMemory(const gfx::Size& size, unsigned internalformat); 20 GLImageMemory(const gfx::Size& size, unsigned internalformat);
24 21
(...skipping 26 matching lines...) Expand all
51 private: 48 private:
52 void DoBindTexImage(unsigned target); 49 void DoBindTexImage(unsigned target);
53 50
54 const gfx::Size size_; 51 const gfx::Size size_;
55 const unsigned internalformat_; 52 const unsigned internalformat_;
56 const unsigned char* memory_; 53 const unsigned char* memory_;
57 gfx::GpuMemoryBuffer::Format format_; 54 gfx::GpuMemoryBuffer::Format format_;
58 bool in_use_; 55 bool in_use_;
59 unsigned target_; 56 unsigned target_;
60 bool need_do_bind_tex_image_; 57 bool need_do_bind_tex_image_;
61 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \
62 defined(USE_OZONE)
63 unsigned egl_texture_id_; 58 unsigned egl_texture_id_;
64 EGLImageKHR egl_image_; 59 EGLImageKHR egl_image_;
65 #endif
66 60
67 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); 61 DISALLOW_COPY_AND_ASSIGN(GLImageMemory);
68 }; 62 };
69 63
70 } // namespace gfx 64 } // namespace gfx
71 65
72 #endif // UI_GL_GL_IMAGE_MEMORY_H_ 66 #endif // UI_GL_GL_IMAGE_MEMORY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_io_surface.cc ('k') | ui/gl/gl_image_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698