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

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

Issue 1830453002: WebGL: GL_RGB emulation for IOSurface backed textures. [For reference only] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile error. Created 4 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/gl_image_io_surface.mm ('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 #include <stddef.h> 10 #include <stddef.h>
(...skipping 20 matching lines...) Expand all
31 void ReleaseTexImage(unsigned target) override {} 31 void ReleaseTexImage(unsigned target) override {}
32 bool CopyTexImage(unsigned target) override; 32 bool CopyTexImage(unsigned target) override;
33 bool CopyTexSubImage(unsigned target, 33 bool CopyTexSubImage(unsigned target,
34 const gfx::Point& offset, 34 const gfx::Point& offset,
35 const gfx::Rect& rect) override; 35 const gfx::Rect& rect) override;
36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 36 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
37 int z_order, 37 int z_order,
38 gfx::OverlayTransform transform, 38 gfx::OverlayTransform transform,
39 const gfx::Rect& bounds_rect, 39 const gfx::Rect& bounds_rect,
40 const gfx::RectF& crop_rect) override; 40 const gfx::RectF& crop_rect) override;
41 bool EmulatingRGB() const override;
41 42
42 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format); 43 static unsigned GetInternalFormatForTesting(gfx::BufferFormat format);
43 44
44 protected: 45 protected:
45 ~GLImageMemory() override; 46 ~GLImageMemory() override;
46 47
47 gfx::BufferFormat format() const { return format_; } 48 gfx::BufferFormat format() const { return format_; }
48 size_t stride() const { return stride_; } 49 size_t stride() const { return stride_; }
49 50
50 private: 51 private:
51 const gfx::Size size_; 52 const gfx::Size size_;
52 const unsigned internalformat_; 53 const unsigned internalformat_;
53 const unsigned char* memory_; 54 const unsigned char* memory_;
54 gfx::BufferFormat format_; 55 gfx::BufferFormat format_;
55 size_t stride_; 56 size_t stride_;
56 57
57 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); 58 DISALLOW_COPY_AND_ASSIGN(GLImageMemory);
58 }; 59 };
59 60
60 } // namespace gl 61 } // namespace gl
61 62
62 #endif // UI_GL_GL_IMAGE_MEMORY_H_ 63 #endif // UI_GL_GL_IMAGE_MEMORY_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_memory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698