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

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

Issue 1750213002: Fix Android black frames from MSE config changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feedback: Adding UpdatePictureBufferSize to strategy Created 4 years, 10 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/texture_manager.cc
diff --git a/gpu/command_buffer/service/texture_manager.cc b/gpu/command_buffer/service/texture_manager.cc
index e5430c15249479e9c88e148c7598cd5015f48993..21cf6f944439c4215fc47d8515547657a3149316 100644
--- a/gpu/command_buffer/service/texture_manager.cc
+++ b/gpu/command_buffer/service/texture_manager.cc
@@ -778,6 +778,9 @@ void Texture::UpdateMipCleared(LevelInfo* info,
bool was_cleared = info->cleared_rect == gfx::Rect(info->width, info->height);
info->width = width;
info->height = height;
+ LOG(ERROR) << __FUNCTION__ << " was_cleared:" << was_cleared
+ << " orig:" << info->cleared_rect.ToString()
+ << " new:" << cleared_rect.ToString();
info->cleared_rect = cleared_rect;
bool cleared = info->cleared_rect == gfx::Rect(info->width, info->height);
if (cleared == was_cleared)
@@ -907,6 +910,7 @@ void Texture::SetLevelInfo(GLenum target,
info.target = target;
info.level = level;
info.internal_format = internal_format;
+ LOG(ERROR) << __FUNCTION__ << " depth was:" << info.depth;
info.depth = depth;
info.border = border;
info.format = format;

Powered by Google App Engine
This is Rietveld 408576698