Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
A
angle
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • angle
  • Repository

Switch branch/tag
  • angle
  • src
  • tests
  • test_utils
  • ANGLETest.cpp
Find file
BlameHistoryPermalink
  • Olli Etuaho's avatar
    Refactoring: Split TextureTest to multiple classes · 4a8329f2
    Olli Etuaho authored Jan 11, 2016
    This removes the cube map setup and the draw scale parameter from the
    tests that don't need them, and reuses the code for setting up the window
    and the shader program for most of the texture tests. The tests are now
    structured as follows:
    
    TexCoordDrawTest: Test class that sets up a shader program for drawing
    with texture coordinates. Vertex shader source can be overridden in
    subclasses, and fragment shader source must be specified in subclasses.
    
    Texture2DTest: Inherits TexCoordDrawTest, sets up a 2D texture and a
    shader for drawing from it.
    
    Texture2DTestWithDrawScale: Inherits Texture2DTest, adding a scale
    parameter that scales the quad that gets drawn.
    
    TextureCubeTest: Inherits TexCoordDrawTest, sets up a cube map and a 2D
    texture and a shader for drawing from them.
    
    Texture2DArrayTestES3: Inherits TexCoordDrawTest. Reserves a texture ID
    and sets up an ESSL3 shader for drawing from a 2D texture array.
    
    Also add a few comments about where things being tested are specified.
    
    Also, ANGLETest::drawQuad parameter names are renamed to make their
    meaning clearer. The parameters affect the vertex shader attribute
    values, which the shader may use for other things besides setting the
    vertex position.
    
    BUG=angleproject:1261
    TEST=angle_end2end_tests
    
    Change-Id: Id673e36d5883aaaf47f2f830c2a1ad0ca293d578
    Reviewed-on: https://chromium-review.googlesource.com/321620Reviewed-by: 's avatarZhenyao Mo <zmo@chromium.org>
    Tested-by: 's avatarOlli Etuaho <oetuaho@nvidia.com>
    4a8329f2
ANGLETest.cpp 9.01 KB
EditWeb IDE
×

Replace ANGLETest.cpp

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.