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

Unified Diff: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc

Issue 1998723002: Move code in ui/gl/* from 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 | « gpu/command_buffer/service/gl_surface_mock.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
index 53549f418754dc72911852987d42fffe075d2cac..30732b8ea0996c2168d104e26f857b41d793d814 100644
--- a/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
+++ b/gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc
@@ -101,8 +101,7 @@ std::string GetVertexShaderSource() {
std::string source;
// Preamble for core and compatibility mode.
- if (gfx::GetGLImplementation() ==
- gfx::kGLImplementationDesktopGLCoreProfile) {
+ if (gl::GetGLImplementation() == gl::kGLImplementationDesktopGLCoreProfile) {
source += std::string("\
#version 150\n\
#define ATTRIBUTE in\n\
@@ -143,8 +142,7 @@ std::string GetFragmentShaderSource(bool premultiply_alpha,
std::string source;
// Preamble for core and compatibility mode.
- if (gfx::GetGLImplementation() ==
- gfx::kGLImplementationDesktopGLCoreProfile) {
+ if (gl::GetGLImplementation() == gl::kGLImplementationDesktopGLCoreProfile) {
source += std::string("\
#version 150\n\
out vec4 frag_color;\n\
@@ -586,8 +584,8 @@ void CopyTextureCHROMIUMResourceManager::DoCopyTextureInternal(
if (vertex_array_object_id_) {
glBindVertexArrayOES(vertex_array_object_id_);
} else {
- if (gfx::GetGLImplementation() !=
- gfx::kGLImplementationDesktopGLCoreProfile) {
+ if (gl::GetGLImplementation() !=
+ gl::kGLImplementationDesktopGLCoreProfile) {
decoder->ClearAllAttributes();
}
glEnableVertexAttribArray(kVertexPositionAttrib);
« no previous file with comments | « gpu/command_buffer/service/gl_surface_mock.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698