Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8252758

Optimize index calculation while copying glyphs

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: internal
    • Fix Version/s: internal
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
      2d
    • CPU:
      generic
    • OS:
      os_x

      Description

      At many places where we are using replaceRegion to copy glyph into MTLTexture we have used literals for index update.

      Update them to use loop increment like :
      for (int i = 0; i < (w * h); i++) {
                          imageData[dstIndex++] = 0xFF;
                          imageData[dstIndex++] = glyph->image[srcIndex++];
                          imageData[dstIndex++] = glyph->image[srcIndex++];
                          imageData[dstIndex++] = glyph->image[srcIndex++];
      }

        Attachments

          Activity

            People

            • Assignee:
              jdv Jayathirth D V
              Reporter:
              jdv Jayathirth D V
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: