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

[macosx] CARemoteLayer code refactoring and unit test

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21
    • CPU:
      generic
    • OS:
      os_x

      Description

      src/macosx/native/sun/awt/AWTView.m contains some code that is not compiled by default (protected with #ifdef REMOTELAYER) and included to the workspace for testing purposes only. It allows developers to test CALayer support in AWT/Java2D without need to build or download Java Plugin (which is not public, btw).

      Instead, this code should be in the unit test. The test should be a standalone application, which is a very simplified version of out-of-proc plugin. It should create an instance of CEmbeddedFrame, get its CALayer pointer, wrap as a remote layer and pass to another process. That process will get this layer and attach it to a standalone top-level window (either native or even Java), similar to what server side part of Java Plugin does.

      All the code in currently protected with #ifdef REMOTELAYER will thus be a part of the test, not a part of JDK.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              serb Sergey Bylokhov
              Reporter:
              art Artem Ananiev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: