Index: ui/gfx/compositor/compositor_gl.cc |
diff --git a/ui/gfx/compositor/compositor_gl.cc b/ui/gfx/compositor/compositor_gl.cc |
index 6e1e65160f90ab50da4cf374b41042b54fd6b385..6458106c6fa5a7848094d481298e45a7bd256128 100644 |
--- a/ui/gfx/compositor/compositor_gl.cc |
+++ b/ui/gfx/compositor/compositor_gl.cc |
@@ -342,7 +342,11 @@ void TextureGL::Draw(const ui::TextureDrawParams& params, |
} |
void TextureGL::DrawInternal(const ui::TextureProgramGL& program, |
const ui::TextureDrawParams& params, |
- const gfx::Rect& clip_bounds) { |
+ const gfx::Rect& clip_bounds_in_layer) { |
jonathan.backer
2011/08/11 11:52:52
How about we call it clip_bounds_in_texture, regio
|
+ // clip clip_bounds_in_layer to size of texture |
+ gfx::Rect clip_bounds = clip_bounds_in_layer.Intersect( |
+ gfx::Rect(gfx::Point(0, 0), size_)); |
+ |
if (params.blend) |
glEnable(GL_BLEND); |
else |