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

Side by Side Diff: ui/gl/gl_image.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/gfx/mac/io_surface.cc ('k') | ui/gl/gl_image_egl.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef UI_GL_GL_IMAGE_H_
6 #define UI_GL_GL_IMAGE_H_ 6 #define UI_GL_GL_IMAGE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 gfx::OverlayTransform transform, 67 gfx::OverlayTransform transform,
68 const gfx::Rect& bounds_rect, 68 const gfx::Rect& bounds_rect,
69 const gfx::RectF& crop_rect) = 0; 69 const gfx::RectF& crop_rect) = 0;
70 70
71 // Dumps information about the memory backing the GLImage to a dump named 71 // Dumps information about the memory backing the GLImage to a dump named
72 // |dump_name|. 72 // |dump_name|.
73 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 73 virtual void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
74 uint64_t process_tracing_id, 74 uint64_t process_tracing_id,
75 const std::string& dump_name) = 0; 75 const std::string& dump_name) = 0;
76 76
77 // Whether the image is emulating an (GL_RGB or GL_BGR) internal format with
78 // (GL_RGBA or GL_BGRA).
79 virtual bool EmulatingRGB() const = 0;
80
77 protected: 81 protected:
78 virtual ~GLImage() {} 82 virtual ~GLImage() {}
79 83
80 private: 84 private:
81 friend class base::RefCounted<GLImage>; 85 friend class base::RefCounted<GLImage>;
82 86
83 DISALLOW_COPY_AND_ASSIGN(GLImage); 87 DISALLOW_COPY_AND_ASSIGN(GLImage);
84 }; 88 };
85 89
86 } // namespace gl 90 } // namespace gl
87 91
88 #endif // UI_GL_GL_IMAGE_H_ 92 #endif // UI_GL_GL_IMAGE_H_
OLDNEW
« no previous file with comments | « ui/gfx/mac/io_surface.cc ('k') | ui/gl/gl_image_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698