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

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

Issue 415283002: ui: Add ScheduleOverlayPlane API to GLImage. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add gfx::AcceleratedWidget argument to GLImage::ScheduleOverlayPlane Created 6 years, 4 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 | Annotate | Revision Log
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 12 matching lines...) Expand all
23 23
24 // Overridden from GLImage: 24 // Overridden from GLImage:
25 virtual void Destroy() OVERRIDE; 25 virtual void Destroy() OVERRIDE;
26 virtual gfx::Size GetSize() OVERRIDE; 26 virtual gfx::Size GetSize() OVERRIDE;
27 virtual bool BindTexImage(unsigned target) OVERRIDE; 27 virtual bool BindTexImage(unsigned target) OVERRIDE;
28 virtual void ReleaseTexImage(unsigned target) OVERRIDE {} 28 virtual void ReleaseTexImage(unsigned target) OVERRIDE {}
29 virtual void WillUseTexImage() OVERRIDE {} 29 virtual void WillUseTexImage() OVERRIDE {}
30 virtual void DidUseTexImage() OVERRIDE {} 30 virtual void DidUseTexImage() OVERRIDE {}
31 virtual void WillModifyTexImage() OVERRIDE {} 31 virtual void WillModifyTexImage() OVERRIDE {}
32 virtual void DidModifyTexImage() OVERRIDE {} 32 virtual void DidModifyTexImage() OVERRIDE {}
33 virtual bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
34 int z_order,
35 OverlayTransform transform,
36 const Rect& bounds_rect,
37 const RectF& crop_rect) OVERRIDE;
33 38
34 protected: 39 protected:
35 virtual ~GLImageMemory(); 40 virtual ~GLImageMemory();
36 41
37 bool HasValidFormat() const; 42 bool HasValidFormat() const;
38 size_t Bytes() const; 43 size_t Bytes() const;
39 44
40 private: 45 private:
41 const unsigned char* memory_; 46 const unsigned char* memory_;
42 const gfx::Size size_; 47 const gfx::Size size_;
43 const unsigned internalformat_; 48 const unsigned internalformat_;
44 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \ 49 #if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) || \
45 defined(USE_OZONE) 50 defined(USE_OZONE)
46 unsigned egl_texture_id_; 51 unsigned egl_texture_id_;
47 EGLImageKHR egl_image_; 52 EGLImageKHR egl_image_;
48 #endif 53 #endif
49 54
50 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); 55 DISALLOW_COPY_AND_ASSIGN(GLImageMemory);
51 }; 56 };
52 57
53 } // namespace gfx 58 } // namespace gfx
54 59
55 #endif // UI_GL_GL_IMAGE_MEMORY_H_ 60 #endif // UI_GL_GL_IMAGE_MEMORY_H_
OLDNEW
« ui/gl/gl_image.h ('K') | « 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