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

Unified Diff: ui/gl/gl_image_memory.cc

Issue 2014223002: Follow-up fixes to changing namespace gfx to gl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_ozone_native_pixmap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_image_memory.cc
diff --git a/ui/gl/gl_image_memory.cc b/ui/gl/gl_image_memory.cc
index b98deb1f4bd32f140d0519790aca96144faf506b..42533eeb5ed986df0627865b86d15986c61b63d2 100644
--- a/ui/gl/gl_image_memory.cc
+++ b/ui/gl/gl_image_memory.cc
@@ -305,7 +305,7 @@ std::unique_ptr<uint8_t[]> GLES2Data(const gfx::Size& size,
size_t gles2_data_stride =
RowSizeForBufferFormat(size.width(), format, 0);
if (stride == gles2_data_stride ||
- gl::g_driver_gl.ext.b_GL_EXT_unpack_subimage)
+ g_driver_gl.ext.b_GL_EXT_unpack_subimage)
return nullptr; // No data conversion needed
std::unique_ptr<uint8_t[]> gles2_data(
@@ -410,7 +410,7 @@ bool GLImageMemory::CopyTexImage(unsigned target) {
GLint data_row_length = DataRowLength(stride_, format_);
std::unique_ptr<uint8_t[]> gles2_data;
- if (gl::GLContext::GetCurrent()->GetVersionInfo()->is_es) {
+ if (GLContext::GetCurrent()->GetVersionInfo()->is_es) {
gles2_data = GLES2Data(size_, format_, stride_, memory_, &data_format,
&data_type, &data_row_length);
}
@@ -460,7 +460,7 @@ bool GLImageMemory::CopyTexSubImage(unsigned target,
GLint data_row_length = DataRowLength(stride_, format_);
std::unique_ptr<uint8_t[]> gles2_data;
- if (gl::GLContext::GetCurrent()->GetVersionInfo()->is_es) {
+ if (GLContext::GetCurrent()->GetVersionInfo()->is_es) {
gles2_data = GLES2Data(rect.size(), format_, stride_, data, &data_format,
&data_type, &data_row_length);
}
« no previous file with comments | « ui/gl/gl_image_io_surface.mm ('k') | ui/gl/gl_image_ozone_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698