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

Unified Diff: gpu/ipc/service/stream_texture_android.cc

Issue 2208733002: Command buffer: clear rect for a specific layer/level of the uncleared texture for CopyTexSubImage3D (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Do not assign a default value 0 to layer, UpdateMipCleared for all layers for 3D texture Created 4 years, 4 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/ipc/service/stream_texture_android.cc
diff --git a/gpu/ipc/service/stream_texture_android.cc b/gpu/ipc/service/stream_texture_android.cc
index 684099330ff20a4f94782496c0d9adccec0fc3dc..32ea9051edfd95bc6f4d76bf22a5b333cc5d8085 100644
--- a/gpu/ipc/service/stream_texture_android.cc
+++ b/gpu/ipc/service/stream_texture_android.cc
@@ -50,7 +50,7 @@ bool StreamTexture::Create(GpuCommandBufferStub* owner_stub,
size.width(), size.height(), 1, 0, GL_RGBA,
GL_UNSIGNED_BYTE, gfx::Rect(size));
texture_manager->SetLevelStreamTextureImage(
- texture, GL_TEXTURE_EXTERNAL_OES, 0, gl_image.get(),
+ texture, GL_TEXTURE_EXTERNAL_OES, 0, 0, gl_image.get(),
gles2::Texture::UNBOUND, 0);
return true;
}
@@ -198,7 +198,7 @@ bool StreamTexture::CopyTexImage(unsigned target) {
// By setting image state to UNBOUND instead of COPIED we ensure that
// CopyTexImage() is called each time the surface texture is used for
// drawing.
- texture->SetLevelStreamTextureImage(GL_TEXTURE_EXTERNAL_OES, 0, this,
+ texture->SetLevelStreamTextureImage(GL_TEXTURE_EXTERNAL_OES, 0, 0, this,
gles2::Texture::UNBOUND, 0);
}
« no previous file with comments | « gpu/command_buffer/service/texture_manager_unittest.cc ('k') | media/gpu/android_deferred_rendering_backing_strategy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698