summaryrefslogtreecommitdiffstats
path: root/content
diff options
context:
space:
mode:
authorbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-21 19:18:38 +0000
committerbacker@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-21 19:18:38 +0000
commit4d74a7ba1024e6948874ce71ac55f8b878698ed2 (patch)
tree5fde745292dd9199a325e170ac5aea456e530132 /content
parent83a1241ef839c1ac0c8161176d3cb3c9d41ff3de (diff)
downloadchromium_src-4d74a7ba1024e6948874ce71ac55f8b878698ed2.zip
chromium_src-4d74a7ba1024e6948874ce71ac55f8b878698ed2.tar.gz
chromium_src-4d74a7ba1024e6948874ce71ac55f8b878698ed2.tar.bz2
Revert 126318: "Aura: sanity check for --enable-partial-swap"
Several canaries have passed with no notable crashes. Lets nuke the extra CHECKs. BUG=117837 TEST=none Review URL: http://codereview.chromium.org/9813006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@128023 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r--content/common/gpu/texture_image_transport_surface.cc11
1 files changed, 1 insertions, 10 deletions
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc
index a22f6bb..aad677a 100644
--- a/content/common/gpu/texture_image_transport_surface.cc
+++ b/content/common/gpu/texture_image_transport_surface.cc
@@ -222,13 +222,6 @@ bool TextureImageTransportSurface::PostSubBuffer(
const gfx::Rect new_damage_rect(x, y, width, height);
if (surfaces_same_size) {
- // TODO(backer): Remove temporary sanity checking once we verified that this
- // is not causing the black rects with --enable-partial-swap.
- CHECK_GE(x, 0);
- CHECK_GE(y, 0);
- CHECK_LE(x + width, expected_size.width());
- CHECK_LE(y + height, expected_size.height());
-
std::vector<gfx::Rect> regions_to_copy;
GetRegionsToCopy(previous_damage_rect_, new_damage_rect, &regions_to_copy);
@@ -249,9 +242,7 @@ bool TextureImageTransportSurface::PostSubBuffer(
}
}
} else {
- // TODO(backer): Remove temporary sanity checking once we verified that this
- // is not causing the black rects with --enable-partial-swap.
- CHECK(new_damage_rect == gfx::Rect(expected_size));
+ DCHECK(new_damage_rect == gfx::Rect(expected_size));
}
glFlush();