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

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

Issue 1140683002: glBindTexImage2DCHROMIUM should retain pixel format. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GetInternalFormat override to MockGLImage. Created 5 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_linux_dma_buffer.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) || \ 10 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \
(...skipping 14 matching lines...) Expand all
25 static bool StrideInBytes(size_t width, 25 static bool StrideInBytes(size_t width,
26 GpuMemoryBuffer::Format format, 26 GpuMemoryBuffer::Format format,
27 size_t* stride_in_bytes); 27 size_t* stride_in_bytes);
28 28
29 bool Initialize(const unsigned char* memory, 29 bool Initialize(const unsigned char* memory,
30 GpuMemoryBuffer::Format format); 30 GpuMemoryBuffer::Format format);
31 31
32 // Overridden from GLImage: 32 // Overridden from GLImage:
33 void Destroy(bool have_context) override; 33 void Destroy(bool have_context) override;
34 Size GetSize() override; 34 Size GetSize() override;
35 unsigned GetInternalFormat() override;
35 bool BindTexImage(unsigned target) override; 36 bool BindTexImage(unsigned target) override;
36 void ReleaseTexImage(unsigned target) override {} 37 void ReleaseTexImage(unsigned target) override {}
37 bool CopyTexImage(unsigned target) override; 38 bool CopyTexImage(unsigned target) override;
38 void WillUseTexImage() override; 39 void WillUseTexImage() override;
39 void DidUseTexImage() override; 40 void DidUseTexImage() override;
40 void WillModifyTexImage() override {} 41 void WillModifyTexImage() override {}
41 void DidModifyTexImage() override {} 42 void DidModifyTexImage() override {}
42 bool ScheduleOverlayPlane(AcceleratedWidget widget, 43 bool ScheduleOverlayPlane(AcceleratedWidget widget,
43 int z_order, 44 int z_order,
44 OverlayTransform transform, 45 OverlayTransform transform,
(...skipping 18 matching lines...) Expand all
63 unsigned egl_texture_id_; 64 unsigned egl_texture_id_;
64 EGLImageKHR egl_image_; 65 EGLImageKHR egl_image_;
65 #endif 66 #endif
66 67
67 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); 68 DISALLOW_COPY_AND_ASSIGN(GLImageMemory);
68 }; 69 };
69 70
70 } // namespace gfx 71 } // namespace gfx
71 72
72 #endif // UI_GL_GL_IMAGE_MEMORY_H_ 73 #endif // UI_GL_GL_IMAGE_MEMORY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_linux_dma_buffer.cc ('k') | ui/gl/gl_image_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698