Changeset 112075 in webkit


Ignore:
Timestamp:
Mar 26, 2012 4:17:40 AM (12 years ago)
Author:
zeno.albisser@nokia.com
Message:

[Qt]WK2] TextureMapperShaderManager should query the program map before creating new shader program instances.
https://bugs.webkit.org/show_bug.cgi?id=82178

If TextureMapperShaderManager already has a reference to an instance of the
requested shader program type, this instance should be reused instead of
creating a new one.

Reviewed by Noam Rosenthal.

  • platform/graphics/texmap/TextureMapperShaderManager.h:

(WebCore::TextureMapperShaderManager::getShaderProgram):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r112072 r112075  
     12012-03-26  Zeno Albisser  <zeno@webkit.org>
     2
     3        [Qt]WK2] TextureMapperShaderManager should query the program map before creating new shader program instances.
     4        https://bugs.webkit.org/show_bug.cgi?id=82178
     5
     6        If TextureMapperShaderManager already has a reference to an instance of the
     7        requested shader program type, this instance should be reused instead of
     8        creating a new one.
     9
     10        Reviewed by Noam Rosenthal.
     11
     12        * platform/graphics/texmap/TextureMapperShaderManager.h:
     13        (WebCore::TextureMapperShaderManager::getShaderProgram):
     14
    1152012-03-26  Yury Semikhatsky  <yurys@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/texmap/TextureMapperShaderManager.h

    r111992 r112075  
    108108            return program;
    109109
     110        TextureMapperShaderProgramMap::iterator it = m_textureMapperShaderProgramMap.find(shaderType);
     111        if (it != m_textureMapperShaderProgramMap.end())
     112            return it->second;
     113
    110114        switch (shaderType) {
    111115        case Simple:
Note: See TracChangeset for help on using the changeset viewer.