Changeset 137319 in webkit


Ignore:
Timestamp:
Dec 11, 2012 8:20:11 AM (5 years ago)
Author:
commit-queue@webkit.org
Message:

[GTK] Add GraphicsLayerActor
https://bugs.webkit.org/show_bug.cgi?id=91940

Source/WebCore:

Patch by Joone Hur <joone.hur@intel.com>, Gustavo Noronha Silva <gustavo.noronha@collabora.com> on 2012-12-11
Reviewed by Gustavo Noronha Silva.

GraphicsLayerActor, which is a new ClutterActor, represents a node in the GPU-renderable layer tree
when accelerated compositing is enabled with Clutter as acceleration backend.
This patch allows to support basic features of CSS 3D Transforms.

No new tests. This will be covered by pixel tests for Qt and GTK+ accelerated
compositing and 3D transforms.

  • GNUmakefile.list.am:
  • platform/graphics/clutter/GraphicsLayerActor.cpp: Added.

(_GraphicsLayerActorPrivate):
(graphics_layer_actor_class_init): GObject configuration of a new Clutter Actor.
(graphics_layer_actor_init): Initialization of the private data of this actor.
(graphicsLayerActorSetProperty): GObject property setter.
(graphicsLayerActorGetProperty): GObject property getter.
(graphicsLayerActorDispose): Called to drop all references to other objects.
(graphicsLayerActorAllocate): Called to set the coordinates of an actor.
(graphicsLayerActorApplyTransform): Applying the transformation to an actor before painting it.
(graphicsLayerActorPaint): Called to paint the actor.
(graphicsLayerActorDraw): Called each time a ClutterCairoTexture has been invalidated.
(graphicsLayerActorAdded): Called each time an actor has been added to container.
(graphicsLayerActorRemoved): Called each time an actor is removed from container.
(graphicsLayerActorNew): Create a specific layer type of GraphicsLayerActor object.
(graphicsLayerActorNewWithClient): Create a specific layer type of GraphicsLayerActor object with
its PlatformClutterClientLayer.
(graphicsLayerActorSetClient): Added setter to set the PlatformClutterClientLayer.
(graphicsLayerActorGetClient): Added getter to get the PlatformClutterClientLayer.
(graphicsLayerActorRemoveAll): Remove all child actors.
(graphicsLayerUpdateTexture): Create a ClutterCairoTexture.
(graphicsLayerActorGetSurface): Added setter to set a cairo_surface_t.
(graphicsLayerActorSetSurface): Added getter to get the cairo_surface_t.
(graphicsLayerActorInvalidateRectangle):
(graphicsLayerActorSetTransform): Set a CoglMatrix to apply matrix transform.
(graphicsLayerActorSetAnchorPoint):
(graphicsLayerActorGetAnchorPoint):
(graphicsLayerActorSetScrollPosition):
(graphicsLayerActorGetnChildren):
(graphicsLayerActorReplaceSublayer):
(graphicsLayerActorInsertSublayer):
(graphicsLayerActorSetSublayers):
(graphicsLayerActorGetLayerType):
(graphicsLayerActorSetLayerType):
(graphicsLayerActorSetTranslateX):
(graphicsLayerActorGetTranslateX):
(graphicsLayerActorSetTranslateY):
(graphicsLayerActorGetTranslateY):
(graphicsLayerActorSetDrawsContent): Added setter to paint content inside a layer.
(graphicsLayerActorGetDrawsContent): Added getter to get the value of the drawsContent.

  • platform/graphics/clutter/GraphicsLayerActor.h: Added.

(_GraphicsLayerActor):
(_GraphicsLayerActorClass):

  • platform/graphics/clutter/GraphicsLayerClutter.h:

(WebCore):

Tools:

Patch by Joone Hur <joone.hur@intel.com> on 2012-12-11
Reviewed by Gustavo Noronha Silva.

Add GraphicsLayerActor to the list of classes that contain GObjects
in the style checker script so that it does not complain about GObject
coding style.

  • Scripts/webkitpy/style/checker.py:
Location:
trunk
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r137318 r137319  
     12012-12-11  Joone Hur  <joone.hur@intel.com>, Gustavo Noronha Silva  <gustavo.noronha@collabora.com>
     2
     3        [GTK] Add GraphicsLayerActor
     4        https://bugs.webkit.org/show_bug.cgi?id=91940
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        GraphicsLayerActor, which is a new ClutterActor, represents a node in the GPU-renderable layer tree
     9        when accelerated compositing is enabled with Clutter as acceleration backend.
     10        This patch allows to support basic features of CSS 3D Transforms.
     11
     12        No new tests. This will be covered by pixel tests for Qt and GTK+ accelerated
     13        compositing and 3D transforms.
     14
     15        * GNUmakefile.list.am:
     16        * platform/graphics/clutter/GraphicsLayerActor.cpp: Added.
     17        (_GraphicsLayerActorPrivate):
     18        (graphics_layer_actor_class_init): GObject configuration of a new Clutter Actor.
     19        (graphics_layer_actor_init): Initialization of the private data of this actor.
     20        (graphicsLayerActorSetProperty): GObject property setter.
     21        (graphicsLayerActorGetProperty): GObject property getter.
     22        (graphicsLayerActorDispose): Called to drop all references to other objects.
     23        (graphicsLayerActorAllocate):  Called to set the coordinates of an actor.
     24        (graphicsLayerActorApplyTransform): Applying the transformation to an actor before painting it.
     25        (graphicsLayerActorPaint): Called to paint the actor.
     26        (graphicsLayerActorDraw): Called each time a ClutterCairoTexture has been invalidated.
     27        (graphicsLayerActorAdded): Called each time an actor has been added to container.
     28        (graphicsLayerActorRemoved): Called each time an actor is removed from container.
     29        (graphicsLayerActorNew): Create a specific layer type of GraphicsLayerActor object.
     30        (graphicsLayerActorNewWithClient): Create a specific layer type of GraphicsLayerActor object with
     31        its PlatformClutterClientLayer.
     32        (graphicsLayerActorSetClient): Added setter to set the PlatformClutterClientLayer.
     33        (graphicsLayerActorGetClient): Added getter to get the PlatformClutterClientLayer.
     34        (graphicsLayerActorRemoveAll): Remove all child actors.
     35        (graphicsLayerUpdateTexture): Create a ClutterCairoTexture.
     36        (graphicsLayerActorGetSurface): Added setter to set a cairo_surface_t.
     37        (graphicsLayerActorSetSurface): Added getter to get the cairo_surface_t.
     38        (graphicsLayerActorInvalidateRectangle):
     39        (graphicsLayerActorSetTransform): Set a CoglMatrix to apply matrix transform.
     40        (graphicsLayerActorSetAnchorPoint):
     41        (graphicsLayerActorGetAnchorPoint):
     42        (graphicsLayerActorSetScrollPosition):
     43        (graphicsLayerActorGetnChildren):
     44        (graphicsLayerActorReplaceSublayer):
     45        (graphicsLayerActorInsertSublayer):
     46        (graphicsLayerActorSetSublayers):
     47        (graphicsLayerActorGetLayerType):
     48        (graphicsLayerActorSetLayerType):
     49        (graphicsLayerActorSetTranslateX):
     50        (graphicsLayerActorGetTranslateX):
     51        (graphicsLayerActorSetTranslateY):
     52        (graphicsLayerActorGetTranslateY):
     53        (graphicsLayerActorSetDrawsContent): Added setter to paint content inside a layer.
     54        (graphicsLayerActorGetDrawsContent): Added getter to get the value of the drawsContent.
     55        * platform/graphics/clutter/GraphicsLayerActor.h: Added.
     56        (_GraphicsLayerActor):
     57        (_GraphicsLayerActorClass):
     58        * platform/graphics/clutter/GraphicsLayerClutter.h:
     59        (WebCore):
     60
    1612012-12-11  Mike West  <mkwst@chromium.org>
    262
  • trunk/Source/WebCore/GNUmakefile.list.am

    r137318 r137319  
    63556355if USE_CLUTTER
    63566356webcore_sources += \
     6357        Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.cpp \
     6358        Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.h \
    63576359        Source/WebCore/platform/graphics/clutter/GraphicsLayerClutter.cpp \
    63586360        Source/WebCore/platform/graphics/clutter/GraphicsLayerClutter.h \
  • trunk/Tools/ChangeLog

    r137314 r137319  
     12012-12-11  Joone Hur  <joone.hur@intel.com>
     2
     3        [GTK] Add GraphicsLayerActor
     4        https://bugs.webkit.org/show_bug.cgi?id=91940
     5
     6        Reviewed by Gustavo Noronha Silva.
     7
     8        Add GraphicsLayerActor to the list of classes that contain GObjects
     9        in the style checker script so that it does not complain about GObject
     10        coding style.
     11
     12        * Scripts/webkitpy/style/checker.py:
     13
    1142012-12-11  Oswald Buddenhagen  <oswald.buddenhagen@digia.com>
    215
  • trunk/Tools/Scripts/webkitpy/style/checker.py

    r137270 r137319  
    223223    ([# These files define GObjects, which implies some definitions of
    224224      # variables and functions containing underscores.
     225      "Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.cpp",
     226      "Source/WebCore/platform/graphics/clutter/GraphicsLayerActor.h",
    225227      "Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer1.cpp",
    226228      "Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp",
Note: See TracChangeset for help on using the changeset viewer.