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 38516e7d49a7887c5685917a36fb585463ad9d1b..ed0add1a9569540ce7c6cdbf20763d375af5e85c 100644 |
--- a/gpu/command_buffer/service/texture_manager.cc |
+++ b/gpu/command_buffer/service/texture_manager.cc |
@@ -817,6 +817,21 @@ gfx::GLImage* Texture::GetLevelImage(GLint target, GLint level) const { |
return 0; |
} |
+void Texture::OnWillModifyPixels() { |
+ if (target()) { |
+ gfx::GLImage* image = GetLevelImage(target(), 0); |
+ if (image) |
+ image->WillModifyPixels(); |
+ } |
+} |
+ |
+void Texture::OnDidModifyPixels() { |
+ if (target()) { |
+ gfx::GLImage* image = GetLevelImage(target(), 0); |
+ if (image) |
+ image->DidModifyPixels(); |
+ } |
+} |
TextureRef::TextureRef(TextureManager* manager, |
GLuint client_id, |