• skyostil@chromium.org's avatar
    Use nearest neighbor filtering for non-translated quads · d1a56f05
    skyostil@chromium.org authored
    Draw tiled layer quads that only have a translation transformation
    component using nearest neighbor filtering instead of bilinear
    filtering. This has two advantages:
    
    1. On some GPUs this can reduce memory bandwidth usage due to increased
       texture cache hit rate.
    
    2. Linear filtering is known to give slightly different results on
       different GPUs because of differences in the texture sampling
       hardware. Avoiding bilinear filtering in the common case (i.e., when
       CSS transformation aren't used) makes WebKit layout test pixel dumps
       better comparable across different devices.
    
    TEST=ResourceProviderTest.ScopedSampler, GLRendererTest2.activeTextureState, manual testing with composited websites.
    
    BUG=
    
    
    Review URL: https://chromiumcodereview.appspot.com/11358181
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@170944 0039d316-1c4b-4281-b951-d872f2087c98
    d1a56f05
resource_provider.cc 29.4 KB