cc: Support texture rect targets for masks
commit03dbe8ae71dbf674627acad91fff64a2fa9d4eb6
authorenne <enne@chromium.org>
Thu, 30 Oct 2014 01:32:55 +0000 (29 18:32 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 30 Oct 2014 01:33:32 +0000 (30 01:33 +0000)
tree01d601efacc1f64706fc3d540bae8fec39480e82
parentccffe0eebe798b78879894d5ee08dbca10f28a33
cc: Support texture rect targets for masks

Currently, GLRenderer supports tile resources as either texture 2d or
texture rectangle.  Before this patch, it only supported texture 2d
masks.  This fills the gap to handle texture rectangle masks.  In
practice it means that using a zero copy raster worker pool will
now not break masks.  This in turn enables impl-side painting for
layout tests.

Unfortunately, there is a lot of indirection between a test saying it
wants to test a particular target type and what needs to happen.  To
make sure that tests are testing the right thing, the creation of
the raster worker and resource pools is now virtual so that tests
can create them as explicitly as needed.

R=danakj@chromium.org,reveman@chromium.org
BUG=423533

Review URL: https://codereview.chromium.org/668123003

Cr-Commit-Position: refs/heads/master@{#302010}
14 files changed:
cc/BUILD.gn
cc/cc_tests.gyp
cc/output/gl_renderer.cc
cc/output/gl_renderer.h
cc/output/gl_renderer_unittest.cc
cc/output/shader.cc
cc/test/layer_tree_pixel_resource_test.cc [new file with mode: 0644]
cc/test/layer_tree_pixel_resource_test.h [new file with mode: 0644]
cc/test/layer_tree_pixel_test.h
cc/test/layer_tree_test.cc
cc/test/layer_tree_test.h
cc/trees/layer_tree_host_impl.cc
cc/trees/layer_tree_host_impl.h
cc/trees/layer_tree_host_pixeltest_masks.cc