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

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

Issue 1275773003: gpu: support GL_TEXTURE_CUBE_MAP destination target to Copy(Sub)TextureCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Choose correct and expensive way Created 5 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/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 e97feb327f1c5a37b6edc98fd1d4a39c21885657..c9b7018fb11709d03017eacdf6537e1cb98dbb8b 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -183,6 +183,10 @@ class GPU_EXPORT Texture {
return immutable_;
}
+ // In GLES2 "cube complete" means all 6 faces level 0 are defined, all the
+ // same format, all the same dimensions and all width = height.
+ bool cube_complete() const { return cube_complete_; }
+
// Get the cleared rectangle for a particular level. Returns an empty
// rectangle if level does not exist.
gfx::Rect GetLevelClearedRect(GLenum target, GLint level) const;
@@ -274,12 +278,6 @@ class GPU_EXPORT Texture {
return texture_complete_;
}
- // In GLES2 "cube complete" means all 6 faces level 0 are defined, all the
- // same format, all the same dimensions and all width = height.
- bool cube_complete() const {
- return cube_complete_;
- }
-
// Whether or not this texture is a non-power-of-two texture.
bool npot() const {
return npot_;

Powered by Google App Engine
This is Rietveld 408576698