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

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

Issue 1421903006: ui/gl: Move GLImage into gl namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ozone demo Created 5 years, 2 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
Index: gpu/command_buffer/service/gles2_cmd_decoder.cc
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc
index 680c81a0f273a4736d99ac85c63acbed6902893d..24117403d4dd0eb4b4e7081480503e6124769a08 100644
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc
@@ -1923,7 +1923,7 @@ class GLES2DecoderImpl : public GLES2Decoder, public ErrorStateClient {
// Copies the image to the texture currently bound to |textarget|. The image
// state of |texture| is updated to reflect the new state.
- void DoCopyTexImage(Texture* texture, GLenum textarget, gfx::GLImage* image);
+ void DoCopyTexImage(Texture* texture, GLenum textarget, gl::GLImage* image);
// This will call DoCopyTexImage if texture has an image but that image is
// not bound or copied to the texture.
@@ -7559,7 +7559,7 @@ void GLES2DecoderImpl::PerformanceWarning(
void GLES2DecoderImpl::DoCopyTexImage(Texture* texture,
GLenum textarget,
- gfx::GLImage* image) {
+ gl::GLImage* image) {
// Note: We update the state to COPIED prior to calling CopyTexImage()
// as that allows the GLImage implemenatation to set it back to UNBOUND
// and ensure that CopyTexImage() is called each time the texture is
@@ -7574,7 +7574,7 @@ void GLES2DecoderImpl::DoCopyTexImageIfNeeded(Texture* texture,
// Image is already in use if texture is attached to a framebuffer.
if (texture && !texture->IsAttachedToFramebuffer()) {
Texture::ImageState image_state;
- gfx::GLImage* image = texture->GetLevelImage(textarget, 0, &image_state);
+ gl::GLImage* image = texture->GetLevelImage(textarget, 0, &image_state);
if (image && image_state == Texture::UNBOUND) {
ScopedGLErrorSuppressor suppressor(
"GLES2DecoderImpl::DoCopyTexImageIfNeeded", GetErrorState());
@@ -7628,7 +7628,7 @@ bool GLES2DecoderImpl::PrepareTexturesForRender() {
if (textarget != GL_TEXTURE_CUBE_MAP) {
Texture* texture = texture_ref->texture();
Texture::ImageState image_state;
- gfx::GLImage* image =
+ gl::GLImage* image =
texture->GetLevelImage(textarget, 0, &image_state);
if (image && image_state == Texture::UNBOUND &&
!texture->IsAttachedToFramebuffer()) {
@@ -9393,7 +9393,7 @@ error::Error GLES2DecoderImpl::HandleScheduleOverlayPlaneCHROMIUM(
return error::kNoError;
}
Texture::ImageState image_state;
- gfx::GLImage* image =
+ gl::GLImage* image =
ref->texture()->GetLevelImage(ref->texture()->target(), 0, &image_state);
if (!image || image_state != Texture::BOUND) {
LOCAL_SET_GL_ERROR(GL_INVALID_VALUE,
@@ -13026,7 +13026,7 @@ void GLES2DecoderImpl::DoCopyTextureCHROMIUM(
Texture* dest_texture = dest_texture_ref->texture();
int source_width = 0;
int source_height = 0;
- gfx::GLImage* image =
+ gl::GLImage* image =
source_texture->GetLevelImage(source_texture->target(), 0);
if (image) {
gfx::Size size = image->GetSize();
@@ -13184,7 +13184,7 @@ void GLES2DecoderImpl::DoCopySubTextureCHROMIUM(
Texture* dest_texture = dest_texture_ref->texture();
int source_width = 0;
int source_height = 0;
- gfx::GLImage* image =
+ gl::GLImage* image =
source_texture->GetLevelImage(source_texture->target(), 0);
if (image) {
gfx::Size size = image->GetSize();
@@ -13330,7 +13330,7 @@ void GLES2DecoderImpl::DoCompressedCopyTextureCHROMIUM(GLenum target,
Texture* dest_texture = dest_texture_ref->texture();
int source_width = 0;
int source_height = 0;
- gfx::GLImage* image =
+ gl::GLImage* image =
source_texture->GetLevelImage(source_texture->target(), 0);
if (image) {
gfx::Size size = image->GetSize();
@@ -13506,7 +13506,7 @@ void GLES2DecoderImpl::DoCompressedCopySubTextureCHROMIUM(GLenum target,
Texture* dest_texture = dest_texture_ref->texture();
int source_width = 0;
int source_height = 0;
- gfx::GLImage* image =
+ gl::GLImage* image =
source_texture->GetLevelImage(source_texture->target(), 0);
if (image) {
gfx::Size size = image->GetSize();
@@ -14111,7 +14111,7 @@ void GLES2DecoderImpl::DoBindTexImage2DCHROMIUM(
return;
}
- gfx::GLImage* image = image_manager()->LookupImage(image_id);
+ gl::GLImage* image = image_manager()->LookupImage(image_id);
if (!image) {
LOCAL_SET_GL_ERROR(
GL_INVALID_OPERATION,
@@ -14154,7 +14154,7 @@ void GLES2DecoderImpl::DoReleaseTexImage2DCHROMIUM(
return;
}
- gfx::GLImage* image = image_manager()->LookupImage(image_id);
+ gl::GLImage* image = image_manager()->LookupImage(image_id);
if (!image) {
LOCAL_SET_GL_ERROR(
GL_INVALID_OPERATION,

Powered by Google App Engine
This is Rietveld 408576698