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

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

Issue 1154053002: gpu: Use a rectangle to keep track of the cleared area of each texture level. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore scissor state in GLES2DecoderImpl::ClearLevel and update GLES2DecoderManualInitTest.DrawCle… Created 5 years, 6 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_definition.h
diff --git a/gpu/command_buffer/service/texture_definition.h b/gpu/command_buffer/service/texture_definition.h
index e5311846295239523be71a7b803a4776e24597a6..19c953cb1c44eff2a8598c3315312003696a0b3d 100644
--- a/gpu/command_buffer/service/texture_definition.h
+++ b/gpu/command_buffer/service/texture_definition.h
@@ -9,6 +9,7 @@
#include "base/memory/ref_counted.h"
#include "gpu/command_buffer/service/gl_utils.h"
+#include "ui/gfx/geometry/rect.h"
namespace gfx {
class GLImage;
@@ -84,7 +85,7 @@ class TextureDefinition {
GLint border,
GLenum format,
GLenum type,
- bool cleared);
+ const gfx::Rect& cleared_rect);
~LevelInfo();
GLenum target;
@@ -95,7 +96,7 @@ class TextureDefinition {
GLint border;
GLenum format;
GLenum type;
- bool cleared;
+ gfx::Rect cleared_rect;
};
unsigned int version_;

Powered by Google App Engine
This is Rietveld 408576698