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

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

Issue 977853002: Reland of Revert of gpu: introduce glCopySubTextureCHROMIUM (patchset #1 id:1 of https://codereview… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Apply image optimization to CopySubTexture. move glValidateProgram Created 5 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
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 19 matching lines...) Expand all
30 gfx::GpuMemoryBuffer::Format format); 30 gfx::GpuMemoryBuffer::Format format);
31 31
32 bool Initialize(const unsigned char* memory, 32 bool Initialize(const unsigned char* memory,
33 gfx::GpuMemoryBuffer::Format format); 33 gfx::GpuMemoryBuffer::Format format);
34 34
35 // Overridden from GLImage: 35 // Overridden from GLImage:
36 void Destroy(bool have_context) override; 36 void Destroy(bool have_context) override;
37 gfx::Size GetSize() override; 37 gfx::Size GetSize() override;
38 bool BindTexImage(unsigned target) override; 38 bool BindTexImage(unsigned target) override;
39 void ReleaseTexImage(unsigned target) override {} 39 void ReleaseTexImage(unsigned target) override {}
40 bool CopyTexImage(unsigned target) override; 40 bool CopyTexSubImage(unsigned target, int xoffset, int yoffset) override;
41 void WillUseTexImage() override; 41 void WillUseTexImage() override;
42 void DidUseTexImage() override; 42 void DidUseTexImage() override;
43 void WillModifyTexImage() override {} 43 void WillModifyTexImage() override {}
44 void DidModifyTexImage() override {} 44 void DidModifyTexImage() override {}
45 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget, 45 bool ScheduleOverlayPlane(gfx::AcceleratedWidget widget,
46 int z_order, 46 int z_order,
47 OverlayTransform transform, 47 OverlayTransform transform,
48 const Rect& bounds_rect, 48 const Rect& bounds_rect,
49 const RectF& crop_rect) override; 49 const RectF& crop_rect) override;
50 50
(...skipping 15 matching lines...) Expand all
66 unsigned egl_texture_id_; 66 unsigned egl_texture_id_;
67 EGLImageKHR egl_image_; 67 EGLImageKHR egl_image_;
68 #endif 68 #endif
69 69
70 DISALLOW_COPY_AND_ASSIGN(GLImageMemory); 70 DISALLOW_COPY_AND_ASSIGN(GLImageMemory);
71 }; 71 };
72 72
73 } // namespace gfx 73 } // namespace gfx
74 74
75 #endif // UI_GL_GL_IMAGE_MEMORY_H_ 75 #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