DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Mercurial (5b81998bb7ab)

VCS Links

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

DEPTH       = @DEPTH@
topsrcdir   = @top_srcdir@
srcdir      = @srcdir@
VPATH       = \
  $(srcdir) \
  $(srcdir)/basic \
  $(srcdir)/opengl \
  $(srcdir)/d3d9 \
  $(srcdir)/d3d10 \
  $(srcdir)/ipc \
  $(NULL)

include $(DEPTH)/config/autoconf.mk

MODULE         = thebes
LIBRARY_NAME   = layers
LIBXUL_LIBRARY = 1
FORCE_STATIC_LIB = 1

DEFINES += -DIMPL_THEBES
ifdef MOZ_DEBUG
DEFINES += -DD3D_DEBUG_INFO
endif

EXPORTS = \
        BasicLayers.h \
        BasicTiledThebesLayer.h \
        BasicImplData.h \
        Composer2D.h \
        GonkIOSurfaceImage.h \
        FrameMetrics.h \
        CompositorChild.h \
        CompositorParent.h \
        ImageContainer.h \
        ImageLayers.h \
        ImageTypes.h \
        Layers.h \
        LayersTypes.h \
        LayerManagerOGLShaders.h \
        LayerManagerOGL.h \
        LayerManagerOGLProgram.h \
        LayerSorter.h \
        LayerTreeInvalidation.h \
        ReadbackLayer.h \
        ShadowLayersManager.h \
        SharedTextureImage.h \
        TexturePoolOGL.h \
        $(NULL)

CPPSRCS = \
        BasicImages.cpp \
        BasicLayerManager.cpp \
        BasicCanvasLayer.cpp \
        BasicColorLayer.cpp \
        BasicContainerLayer.cpp \
        BasicImageLayer.cpp \
        BasicLayersImpl.cpp \
        BasicThebesLayer.cpp \
        BasicBuffers.cpp \
        BasicTiledThebesLayer.cpp \
        ImageContainer.cpp \
        Layers.cpp \
        RenderTrace.cpp \
        ReadbackProcessor.cpp \
        ThebesLayerBuffer.cpp \
        CanvasLayerOGL.cpp \
        ColorLayerOGL.cpp \
        ContainerLayerOGL.cpp \
        ImageLayerOGL.cpp \
        LayerManagerOGL.cpp \
        ThebesLayerOGL.cpp \
        TiledThebesLayerOGL.cpp \
        ReusableTileStoreOGL.cpp \
        LayerManagerOGLProgram.cpp \
        LayerSorter.cpp \
        LayerTreeInvalidation.cpp \
        ImageLayers.cpp \
        TexturePoolOGL.cpp \
        $(NULL)

ifeq ($(MOZ_WIDGET_TOOLKIT),windows)
ifdef MOZ_ENABLE_D3D9_LAYER
EXPORTS += \
        LayerManagerD3D9.h \
        DeviceManagerD3D9.h \
        $(NULL)

CPPSRCS += \
        LayerManagerD3D9.cpp \
        ThebesLayerD3D9.cpp \
        ContainerLayerD3D9.cpp \
        ImageLayerD3D9.cpp \
        ColorLayerD3D9.cpp \
        CanvasLayerD3D9.cpp \
        ShadowBufferD3D9.cpp \
        DeviceManagerD3D9.cpp \
        Nv3DVUtils.cpp \
        $(NULL)
endif
ifdef MOZ_ENABLE_D3D10_LAYER
EXPORTS += \
        LayerManagerD3D10.h \
        ReadbackManagerD3D10.h \
        $(NULL)

CPPSRCS += \
        CanvasLayerD3D10.cpp \
        ColorLayerD3D10.cpp \
        ContainerLayerD3D10.cpp \
        ImageLayerD3D10.cpp \
        LayerManagerD3D10.cpp \
        ReadbackManagerD3D10.cpp \
	ShadowLayerUtilsD3D10.cpp \
        ThebesLayerD3D10.cpp \
        $(NULL)
endif
endif

EXPORTS_NAMESPACES = gfxipc mozilla/layers
EXPORTS_gfxipc = ShadowLayerUtils.h
EXPORTS_mozilla/layers =\
        AsyncPanZoomController.h \
        Axis.h \
        CompositorCocoaWidgetHelper.h \
        CompositorChild.h \
        CompositorParent.h \
        GeckoContentController.h \
        GestureEventListener.h \
        ImageBridgeChild.h \
        ImageBridgeParent.h \
        ImageContainerChild.h \
        ImageContainerParent.h \
        ShadowLayers.h \
        ShadowLayersChild.h \
        ShadowLayersParent.h \
        ShadowLayersManager.h \
        RenderTrace.h \
        SharedImageUtils.h \
        ShmemYCbCrImage.h \
        TaskThrottler.h \
        $(NULL)

CPPSRCS += \
        AsyncPanZoomController.cpp \
        Axis.cpp \
        CompositorCocoaWidgetHelper.cpp \
        CompositorChild.cpp \
        CompositorParent.cpp \
        GestureEventListener.cpp \
        ImageBridgeChild.cpp \
        ImageBridgeParent.cpp \
        ImageContainerChild.cpp \
        ImageContainerParent.cpp \
        ShadowLayers.cpp \
        ShadowLayerChild.cpp \
        ShadowLayersChild.cpp \
        ShadowLayerParent.cpp \
        ShadowLayersParent.cpp \
        ShmemYCbCrImage.cpp \
        TaskThrottler.cpp \
        $(NULL)

ifdef MOZ_X11 #{
EXPORTS_mozilla/layers += ShadowLayerUtilsX11.h
CPPSRCS += ShadowLayerUtilsX11.cpp
endif #}

ifdef MOZ_ENABLE_D3D10_LAYER
EXPORTS_mozilla/layers += ShadowLayerUtilsD3D10.h
DEFINES	+= -DMOZ_ENABLE_D3D10_LAYER
endif

# NB: Gralloc is available on other platforms that use the android GL
# libraries, but only Gonk is able to use it reliably because Gecko
# has full system permissions there.
ifeq ($(MOZ_WIDGET_TOOLKIT),gonk)
EXPORTS_mozilla/layers += ShadowLayerUtilsGralloc.h
CPPSRCS += \
        ShadowLayerUtilsGralloc.cpp \
        GrallocImages.cpp \
        GonkIOSurfaceImage.cpp \
        $(NULL)
endif

include $(topsrcdir)/config/rules.mk

include $(topsrcdir)/ipc/chromium/chromium-config.mk

LOCAL_INCLUDES += \
        -I$(topsrcdir)/content/events/src \
        -I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright \
        -I$(ANDROID_SOURCE)/frameworks/base/include/media/stagefright/openmax \
        $(NULL)

CXXFLAGS += $(MOZ_CAIRO_CFLAGS) $(MOZ_PIXMAN_CFLAGS) $(TK_CFLAGS)

ifdef _MSC_VER
ifeq ($(CPU_ARCH),x86_64)
# Workaround compiler bug (Bug 795594)
LayerTreeInvalidation.$(OBJ_SUFFIX): CXXFLAGS += -GL-
Layers.$(OBJ_SUFFIX): CXXFLAGS += -GL-
endif
endif