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

Side by Side Diff: ui/gl/gl_image_surface_texture.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_stub.cc ('k') | ui/gl/gl_image_surface_texture.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_SURFACE_TEXTURE_H_ 5 #ifndef UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_
6 #define UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_ 6 #define UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 25 matching lines...) Expand all
36 const gfx::Point& offset, 36 const gfx::Point& offset,
37 const gfx::Rect& rect) override; 37 const gfx::Rect& rect) override;
38 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 38 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
39 int z_order, 39 int z_order,
40 gfx::OverlayTransform transform, 40 gfx::OverlayTransform transform,
41 const gfx::Rect& bounds_rect, 41 const gfx::Rect& bounds_rect,
42 const gfx::RectF& crop_rect) override; 42 const gfx::RectF& crop_rect) override;
43 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd, 43 void OnMemoryDump(base::trace_event::ProcessMemoryDump* pmd,
44 uint64_t process_tracing_id, 44 uint64_t process_tracing_id,
45 const std::string& dump_name) override; 45 const std::string& dump_name) override;
46 bool EmulatingRGB() const override;
46 47
47 protected: 48 protected:
48 ~GLImageSurfaceTexture() override; 49 ~GLImageSurfaceTexture() override;
49 50
50 private: 51 private:
51 scoped_refptr<gfx::SurfaceTexture> surface_texture_; 52 scoped_refptr<gfx::SurfaceTexture> surface_texture_;
52 const gfx::Size size_; 53 const gfx::Size size_;
53 GLint texture_id_; 54 GLint texture_id_;
54 base::ThreadChecker thread_checker_; 55 base::ThreadChecker thread_checker_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(GLImageSurfaceTexture); 57 DISALLOW_COPY_AND_ASSIGN(GLImageSurfaceTexture);
57 }; 58 };
58 59
59 } // namespace gl 60 } // namespace gl
60 61
61 #endif // UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_ 62 #endif // UI_GL_GL_IMAGE_SURFACE_TEXTURE_H_
OLDNEW
« no previous file with comments | « ui/gl/gl_image_stub.cc ('k') | ui/gl/gl_image_surface_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698