summaryrefslogtreecommitdiffstats
path: root/cc/test/render_pass_test_utils.cc
diff options
context:
space:
mode:
authornick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-25 17:32:20 +0000
committernick@chromium.org <nick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-25 17:32:20 +0000
commitf088145ace0e944476074c58114aba217f9438e3 (patch)
treeceb320ec1f4f7b682743ac13fd5bbd850b5b28a8 /cc/test/render_pass_test_utils.cc
parent51a5a9dfd1dc14e4bbccbb2cb661f84df495b2fe (diff)
downloadchromium_src-f088145ace0e944476074c58114aba217f9438e3.zip
chromium_src-f088145ace0e944476074c58114aba217f9438e3.tar.gz
chromium_src-f088145ace0e944476074c58114aba217f9438e3.tar.bz2
Revert 196423 "cc: Fix anti-aliasing of axis-aligned quads."
[Reason for revert: AxisAligned unit test is failing on some of the Mac bots.] > cc: Fix anti-aliasing of axis-aligned quads. > > Axis-aligned quads with edges not aligned to pixel boundaries > are rendered incorrectly. These quads need anti-aliasing but > current code that determines if anti-aliasing is needed thinks > that no axis-aligned quads need it. > > This fixes the problem by adding alignment to pixel boundaries > as an additional requirement to avoid anti-aliasing. > > BUG=169374 > TEST=GLRendererPixelTest.AxisAligned,GLRendererShaderTest.DrawSolidColorShad > > Review URL: https://chromiumcodereview.appspot.com/12538005 TBR=reveman@chromium.org Review URL: https://codereview.chromium.org/14465006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/render_pass_test_utils.cc')
-rw-r--r--cc/test/render_pass_test_utils.cc16
1 files changed, 0 insertions, 16 deletions
diff --git a/cc/test/render_pass_test_utils.cc b/cc/test/render_pass_test_utils.cc
index 719be7f..24cb778 100644
--- a/cc/test/render_pass_test_utils.cc
+++ b/cc/test/render_pass_test_utils.cc
@@ -57,22 +57,6 @@ SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass,
return quad_ptr;
}
-SolidColorDrawQuad* AddTransformedQuad(TestRenderPass* pass,
- gfx::Rect rect,
- SkColor color,
- const gfx::Transform& transform) {
- MockQuadCuller quad_sink(&pass->quad_list, &pass->shared_quad_state_list);
- AppendQuadsData data(pass->id);
- SharedQuadState* shared_state =
- quad_sink.UseSharedQuadState(SharedQuadState::Create());
- shared_state->SetAll(transform, rect.size(), rect, rect, false, 1);
- scoped_ptr<SolidColorDrawQuad> quad = SolidColorDrawQuad::Create();
- quad->SetNew(shared_state, rect, color);
- SolidColorDrawQuad* quad_ptr = quad.get();
- quad_sink.Append(quad.PassAs<DrawQuad>(), &data);
- return quad_ptr;
-}
-
void AddRenderPassQuad(TestRenderPass* to_pass,
TestRenderPass* contributing_pass) {
MockQuadCuller quad_sink(&to_pass->quad_list,