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

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

Issue 1425943002: Revert of Fix WebGL 2 texture renderability check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 7a3065ee99523c013d04827eb021c88ecbeeeb0d..33cd54ad225b682f962f69e169f49e67c94cef86 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -272,9 +272,7 @@
FaceInfo();
~FaceInfo();
- // This is relative to base_level and max_level of a texture.
GLsizei num_mip_levels;
- // This contains slots for all levels starting at 0.
std::vector<LevelInfo> level_infos;
};
@@ -364,11 +362,10 @@
GLenum format,
GLenum type);
- // Returns true if texture mip level is complete relative to base level.
- // Note that level_diff = level - base_level.
- static bool TextureMipComplete(const Texture::LevelInfo& base_level_face,
+ // Returns true if texture mip level is complete relative to first level.
+ static bool TextureMipComplete(const Texture::LevelInfo& level0_face,
GLenum target,
- GLint level_diff,
+ GLint level,
GLenum internal_format,
GLsizei width,
GLsizei height,
@@ -420,10 +417,6 @@
// Increment the framebuffer state change count in all the managers
// referencing this texture.
void IncAllFramebufferStateChangeCount();
-
- void UpdateBaseLevel(GLint base_level);
- void UpdateMaxLevel(GLint max_level);
- void UpdateNumMipLevels();
MailboxManager* mailbox_manager_;
« no previous file with comments | « content/test/gpu/gpu_tests/webgl2_conformance_expectations.py ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698