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

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

Issue 1152693002: ui: Add sub region copy support to GLImage::CopyTexImage. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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_io_surface.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 17 matching lines...) Expand all
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 unsigned GetInternalFormat() override;
36 bool BindTexImage(unsigned target) override; 36 bool BindTexImage(unsigned target) override;
37 void ReleaseTexImage(unsigned target) override {} 37 void ReleaseTexImage(unsigned target) override {}
38 bool CopyTexImage(unsigned target) override; 38 bool CopyTexSubImage(unsigned target,
39 const Point& offset,
40 const Rect& rect) override;
39 void WillUseTexImage() override; 41 void WillUseTexImage() override;
40 void DidUseTexImage() override; 42 void DidUseTexImage() override;
41 void WillModifyTexImage() override {} 43 void WillModifyTexImage() override {}
42 void DidModifyTexImage() override {} 44 void DidModifyTexImage() override {}
43 bool ScheduleOverlayPlane(AcceleratedWidget widget, 45 bool ScheduleOverlayPlane(AcceleratedWidget widget,
44 int z_order, 46 int z_order,
45 OverlayTransform transform, 47 OverlayTransform transform,
46 const Rect& bounds_rect, 48 const Rect& bounds_rect,
47 const RectF& crop_rect) override; 49 const RectF& crop_rect) override;
48 50
(...skipping 15 matching lines...) Expand all
64 unsigned egl_texture_id_; 66 unsigned egl_texture_id_;
65 EGLImageKHR egl_image_; 67 EGLImageKHR egl_image_;
66 #endif 68 #endif
67 69
68 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); 70 DISALLOW_COPY_AND_ASSIGN(GLImageMemory);
69 }; 71 };
70 72
71 } // namespace gfx 73 } // namespace gfx
72 74
73 #endif // UI_GL_GL_IMAGE_MEMORY_H_ 75 #endif // UI_GL_GL_IMAGE_MEMORY_H_
OLDNEW
« no previous file with comments | « 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