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

Unified Diff: ui/gfx/compositor/compositor_gl.cc

Issue 7461152: Gets rid of chrome being cleared for a moment when keyboard is hidden (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: removed extraneous code Created 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698