diff options
author | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 18:25:27 +0000 |
---|---|---|
committer | danakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 18:25:27 +0000 |
commit | 303d592db3872bb4c6d82f506848c0d5edecf6a1 (patch) | |
tree | dd7413cb9f628b4b6f14a3cf99748f07bc7a6270 /cc/layers/io_surface_layer_impl.cc | |
parent | d2ec5fa48fb6d0bb0f0e1f85f7818d10d7450587 (diff) | |
download | chromium_src-303d592db3872bb4c6d82f506848c0d5edecf6a1.zip chromium_src-303d592db3872bb4c6d82f506848c0d5edecf6a1.tar.gz chromium_src-303d592db3872bb4c6d82f506848c0d5edecf6a1.tar.bz2 |
cc: Add a test that the IOSurface drawing path makes the right context calls.
This path is super not tested. In the absence of being able to create an IOSurface
and do a pixel test, this makes sure the IOSurface layer's drawing path issues the
appropriate calls on the context to draw - including using the right texture target
which would have caught a regression with the VideoResourceUpdater CL.
R=enne, jamesr
BUG=230300
Review URL: https://chromiumcodereview.appspot.com/14098007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195237 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/layers/io_surface_layer_impl.cc')
-rw-r--r-- | cc/layers/io_surface_layer_impl.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/cc/layers/io_surface_layer_impl.cc b/cc/layers/io_surface_layer_impl.cc index c5da815..b09ee33 100644 --- a/cc/layers/io_surface_layer_impl.cc +++ b/cc/layers/io_surface_layer_impl.cc @@ -81,22 +81,9 @@ void IOSurfaceLayerImpl::WillDraw(ResourceProvider* resource_provider) { io_surface_texture_id_); } - GLC(context3d, context3d->activeTexture(GL_TEXTURE0)); GLC(context3d, context3d->bindTexture(GL_TEXTURE_RECTANGLE_ARB, io_surface_texture_id_)); - GLC(context3d, - context3d->texParameteri( - GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MIN_FILTER, GL_LINEAR)); - GLC(context3d, - context3d->texParameteri( - GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); - GLC(context3d, - context3d->texParameteri( - GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE)); - GLC(context3d, - context3d->texParameteri( - GL_TEXTURE_RECTANGLE_ARB, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE)); context3d->texImageIOSurface2DCHROMIUM(GL_TEXTURE_RECTANGLE_ARB, io_surface_size_.width(), io_surface_size_.height(), |