Source code

Revision control

Other Tools

1
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
2
# vim: set filetype=python:
3
# This Source Code Form is subject to the terms of the Mozilla Public
4
# License, v. 2.0. If a copy of the MPL was not distributed with this
5
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7
with Files('**'):
8
BUG_COMPONENT = ('Core', 'Graphics: Layers')
9
10
with Files('apz/**'):
11
BUG_COMPONENT = ('Core', 'Panning and Zooming')
12
13
EXPORTS += [
14
'basic/BasicCanvasLayer.h',
15
'basic/BasicImplData.h',
16
'basic/BasicLayers.h',
17
'basic/BasicLayersImpl.h',
18
'basic/BasicPaintedLayer.h',
19
'client/ClientCanvasLayer.h',
20
'client/ClientContainerLayer.h',
21
'client/ClientLayerManager.h',
22
'client/ClientPaintedLayer.h',
23
'client/ClientTiledPaintedLayer.h',
24
'composite/CompositableHost.h',
25
'composite/ImageHost.h',
26
'CompositorTypes.h',
27
'D3D9SurfaceImage.h',
28
'FrameMetrics.h',
29
'GLImages.h',
30
'GPUVideoImage.h',
31
'ImageContainer.h',
32
'ImageLayers.h',
33
'ImageTypes.h',
34
'IMFYCbCrImage.h',
35
'ipc/ThreadSafeRefcountingWithMainThreadDestruction.h',
36
'Layers.h',
37
'LayerScope.h',
38
'LayersLogging.h',
39
'LayerSorter.h',
40
'LayersTypes.h',
41
'LayerTreeInvalidation.h',
42
'LayerUserData.h',
43
'opengl/OGLShaderConfig.h',
44
'opengl/OGLShaderProgram.h',
45
'protobuf/LayerScopePacket.pb.h',
46
'ReadbackLayer.h',
47
'TiledLayerBuffer.h',
48
]
49
50
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
51
SOURCES += [
52
'D3D11ShareHandleImage.cpp',
53
'D3D11YCbCrImage.cpp',
54
]
55
UNIFIED_SOURCES += [
56
'D3D9SurfaceImage.cpp',
57
'IMFYCbCrImage.cpp',
58
'TextureDIB.cpp',
59
]
60
EXPORTS.mozilla.layers += [
61
'TextureDIB.h',
62
]
63
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
64
EXPORTS.mozilla.layers += [
65
'd3d11/CompositorD3D11.h',
66
'd3d11/DeviceAttachmentsD3D11.h',
67
'd3d11/DiagnosticsD3D11.h',
68
'd3d11/HelpersD3D11.h',
69
'd3d11/MLGDeviceD3D11.h',
70
'd3d11/ReadbackManagerD3D11.h',
71
'd3d11/ShaderDefinitionsD3D11.h',
72
'd3d11/TextureD3D11.h',
73
]
74
UNIFIED_SOURCES += [
75
'd3d11/DiagnosticsD3D11.cpp',
76
'd3d11/MLGDeviceD3D11.cpp',
77
'd3d11/TextureD3D11.cpp',
78
]
79
SOURCES += [
80
'd3d11/CompositorD3D11.cpp',
81
'd3d11/DeviceAttachmentsD3D11.cpp',
82
'd3d11/ReadbackManagerD3D11.cpp',
83
]
84
85
EXPORTS.gfxipc += [
86
'ipc/ShadowLayerUtils.h',
87
]
88
89
EXPORTS.mozilla.dom += [
90
'apz/util/CheckerboardReportService.h',
91
]
92
93
EXPORTS.mozilla.layers += [
94
'AnimationHelper.h',
95
'AnimationInfo.h',
96
'apz/public/APZInputBridge.h',
97
'apz/public/APZSampler.h',
98
'apz/public/APZUpdater.h',
99
'apz/public/CompositorController.h',
100
'apz/public/GeckoContentController.h',
101
'apz/public/IAPZCTreeManager.h',
102
'apz/public/MatrixMessage.h',
103
'apz/public/MetricsSharingController.h',
104
# exporting things from apz/src is temporary until we extract a
105
# proper interface for the code there
106
'apz/src/APZUtils.h',
107
'apz/src/AsyncDragMetrics.h',
108
'apz/src/FocusTarget.h',
109
'apz/src/KeyboardMap.h',
110
'apz/src/KeyboardScrollAction.h',
111
'apz/testutil/APZTestData.h',
112
'apz/util/ActiveElementManager.h',
113
'apz/util/APZCCallbackHelper.h',
114
'apz/util/APZEventState.h',
115
'apz/util/APZThreadUtils.h',
116
'apz/util/ChromeProcessController.h',
117
'apz/util/ContentProcessController.h',
118
'apz/util/DoubleTapToZoom.h',
119
'apz/util/InputAPZContext.h',
120
'apz/util/ScrollLinkedEffectDetector.h',
121
'apz/util/TouchActionHelper.h',
122
'apz/util/TouchCounter.h',
123
'AsyncCanvasRenderer.h',
124
'AtomicRefCountedWithFinalize.h',
125
'AxisPhysicsModel.h',
126
'AxisPhysicsMSDModel.h',
127
'basic/BasicCompositor.h',
128
'basic/MacIOSurfaceTextureHostBasic.h',
129
'basic/TextureHostBasic.h',
130
'BSPTree.h',
131
'BufferTexture.h',
132
'CanvasDrawEventRecorder.h',
133
'CanvasRenderer.h',
134
'client/CanvasClient.h',
135
'client/CompositableClient.h',
136
'client/ContentClient.h',
137
'client/GPUVideoTextureClient.h',
138
'client/ImageClient.h',
139
'client/MultiTiledContentClient.h',
140
'client/SingleTiledContentClient.h',
141
'client/TextureClient.h',
142
'client/TextureClientPool.h',
143
'client/TextureClientRecycleAllocator.h',
144
'client/TextureClientSharedSurface.h',
145
'client/TextureRecorded.h',
146
'client/TiledContentClient.h',
147
'composite/AsyncCompositionManager.h',
148
'composite/CanvasLayerComposite.h',
149
'composite/ColorLayerComposite.h',
150
'composite/CompositorScreenshotGrabber.h',
151
'composite/ContainerLayerComposite.h',
152
'composite/ContentHost.h',
153
'composite/Diagnostics.h',
154
'composite/FPSCounter.h',
155
'composite/FrameUniformityData.h',
156
'composite/GPUVideoTextureHost.h',
157
'composite/ImageComposite.h',
158
'composite/ImageHost.h',
159
'composite/ImageLayerComposite.h',
160
'composite/LayerManagerComposite.h',
161
'composite/PaintedLayerComposite.h',
162
'composite/TextRenderer.h',
163
'composite/TextureHost.h',
164
'composite/TiledContentHost.h',
165
'CompositionRecorder.h',
166
'Compositor.h',
167
'CompositorTypes.h',
168
'CopyableCanvasRenderer.h',
169
'D3D11ShareHandleImage.h',
170
'D3D11YCbCrImage.h',
171
'D3D9SurfaceImage.h',
172
'DirectionUtils.h',
173
'Effects.h',
174
'ImageDataSerializer.h',
175
'ipc/APZChild.h',
176
'ipc/APZCTreeManagerChild.h',
177
'ipc/APZCTreeManagerParent.h',
178
'ipc/APZInputBridgeChild.h',
179
'ipc/APZInputBridgeParent.h',
180
'ipc/CanvasChild.h',
181
'ipc/CanvasThread.h',
182
'ipc/CanvasTranslator.h',
183
'ipc/CompositableForwarder.h',
184
'ipc/CompositableTransactionParent.h',
185
'ipc/CompositorBridgeChild.h',
186
'ipc/CompositorBridgeParent.h',
187
'ipc/CompositorManagerChild.h',
188
'ipc/CompositorManagerParent.h',
189
'ipc/CompositorThread.h',
190
'ipc/CompositorVsyncScheduler.h',
191
'ipc/CompositorVsyncSchedulerOwner.h',
192
'ipc/ContentCompositorBridgeParent.h',
193
'ipc/ImageBridgeChild.h',
194
'ipc/ImageBridgeParent.h',
195
'ipc/ISurfaceAllocator.h',
196
'ipc/KnowsCompositor.h',
197
'ipc/LayerAnimationUtils.h',
198
'ipc/LayersMessageUtils.h',
199
'ipc/LayerTransactionChild.h',
200
'ipc/LayerTransactionParent.h',
201
'ipc/LayerTreeOwnerTracker.h',
202
'ipc/RefCountedShmem.h',
203
'ipc/RemoteContentController.h',
204
'ipc/ShadowLayers.h',
205
'ipc/SharedPlanarYCbCrImage.h',
206
'ipc/SharedRGBImage.h',
207
'ipc/SharedSurfacesChild.h',
208
'ipc/SharedSurfacesMemoryReport.h',
209
'ipc/SharedSurfacesParent.h',
210
'ipc/SynchronousTask.h',
211
'ipc/TextureForwarder.h',
212
'ipc/UiCompositorControllerChild.h',
213
'ipc/UiCompositorControllerMessageTypes.h',
214
'ipc/UiCompositorControllerParent.h',
215
'ipc/VideoBridgeChild.h',
216
'ipc/VideoBridgeParent.h',
217
'ipc/VideoBridgeUtils.h',
218
'LayerAttributes.h',
219
'LayerMetricsWrapper.h',
220
'LayersHelpers.h',
221
'LayersTypes.h',
222
'MemoryPressureObserver.h',
223
'mlgpu/LayerManagerMLGPU.h',
224
'mlgpu/LayerMLGPU.h',
225
'mlgpu/MemoryReportingMLGPU.h',
226
'mlgpu/MLGDevice.h',
227
'mlgpu/MLGDeviceTypes.h',
228
'mlgpu/MLGPUScreenshotGrabber.h',
229
'mlgpu/ShaderDefinitionsMLGPU.h',
230
'mlgpu/UtilityMLGPU.h',
231
'NativeLayer.h',
232
'OOPCanvasRenderer.h',
233
'opengl/CompositingRenderTargetOGL.h',
234
'opengl/CompositorOGL.h',
235
'opengl/MacIOSurfaceTextureClientOGL.h',
236
'opengl/MacIOSurfaceTextureHostOGL.h',
237
'opengl/TextureClientOGL.h',
238
'opengl/TextureHostOGL.h',
239
'PaintThread.h',
240
'PersistentBufferProvider.h',
241
'ProfilerScreenshots.h',
242
'RenderTrace.h',
243
'RepaintRequest.h',
244
'RotatedBuffer.h',
245
'ScrollableLayerGuid.h',
246
'ShareableCanvasRenderer.h',
247
'SourceSurfaceSharedData.h',
248
'SourceSurfaceVolatileData.h',
249
'SurfacePool.h',
250
'SyncObject.h',
251
'TextureSourceProvider.h',
252
'TextureWrapperImage.h',
253
'TransactionIdAllocator.h',
254
'TreeTraversal.h',
255
'UpdateImageHelper.h',
256
'wr/AsyncImagePipelineManager.h',
257
'wr/ClipManager.h',
258
'wr/DisplayItemCache.h',
259
'wr/IpcResourceUpdateQueue.h',
260
'wr/RenderRootStateManager.h',
261
'wr/RenderRootTypes.h',
262
'wr/StackingContextHelper.h',
263
'wr/WebRenderBridgeChild.h',
264
'wr/WebRenderBridgeParent.h',
265
'wr/WebRenderCanvasRenderer.h',
266
'wr/WebRenderCommandBuilder.h',
267
'wr/WebRenderCompositionRecorder.h',
268
'wr/WebRenderDrawEventRecorder.h',
269
'wr/WebRenderImageHost.h',
270
'wr/WebRenderLayerManager.h',
271
'wr/WebRenderLayersLogging.h',
272
'wr/WebRenderMessageUtils.h',
273
'wr/WebRenderScrollData.h',
274
'wr/WebRenderScrollDataWrapper.h',
275
'wr/WebRenderTextureHost.h',
276
'wr/WebRenderUserData.h',
277
'ZoomConstraints.h',
278
]
279
280
if CONFIG['MOZ_X11']:
281
EXPORTS.mozilla.layers += [
282
'basic/TextureClientX11.h',
283
'basic/X11TextureSourceBasic.h',
284
'composite/X11TextureHost.h',
285
'ipc/ShadowLayerUtilsX11.h',
286
'opengl/X11TextureSourceOGL.h',
287
]
288
SOURCES += [
289
'basic/TextureClientX11.cpp',
290
'basic/X11BasicCompositor.cpp',
291
'basic/X11TextureSourceBasic.cpp',
292
'composite/X11TextureHost.cpp',
293
'ipc/ShadowLayerUtilsX11.cpp',
294
'opengl/X11TextureSourceOGL.cpp',
295
]
296
297
if CONFIG['MOZ_WAYLAND']:
298
EXPORTS.mozilla.layers += [
299
'opengl/WaylandDMABUFTextureClientOGL.h',
300
'opengl/WaylandDMABUFTextureHostOGL.h',
301
'WaylandDMABUFSurfaceImage.h',
302
]
303
SOURCES += [
304
'opengl/WaylandDMABUFTextureClientOGL.cpp',
305
'opengl/WaylandDMABUFTextureHostOGL.cpp',
306
'WaylandDMABUFSurfaceImage.cpp',
307
]
308
309
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
310
EXPORTS.mozilla.layers += [
311
'NativeLayerCA.h',
312
'SurfacePoolCA.h',
313
'TextureSync.h',
314
]
315
EXPORTS += [
316
'MacIOSurfaceHelpers.h',
317
'MacIOSurfaceImage.h',
318
]
319
UNIFIED_SOURCES += [
320
'NativeLayerCA.mm',
321
'SurfacePoolCA.mm',
322
'TextureSync.cpp',
323
]
324
SOURCES += [
325
'ipc/ShadowLayerUtilsMac.cpp',
326
'MacIOSurfaceHelpers.cpp',
327
'MacIOSurfaceImage.cpp',
328
]
329
OS_LIBS += [
330
'-framework IOSurface',
331
]
332
333
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'android':
334
UNIFIED_SOURCES += [
335
'apz/src/AndroidAPZ.cpp',
336
'apz/src/AndroidDynamicToolbarAnimator.cpp',
337
'apz/src/AndroidFlingPhysics.cpp',
338
'apz/src/AndroidVelocityTracker.cpp',
339
]
340
EXPORTS.mozilla.layers += [
341
'apz/src/AndroidDynamicToolbarAnimator.h',
342
]
343
344
UNIFIED_SOURCES += [
345
'AnimationHelper.cpp',
346
'AnimationInfo.cpp',
347
'apz/src/APZCTreeManager.cpp',
348
'apz/src/APZInputBridge.cpp',
349
'apz/src/APZSampler.cpp',
350
'apz/src/APZUpdater.cpp',
351
'apz/src/APZUtils.cpp',
352
'apz/src/AsyncPanZoomController.cpp',
353
'apz/src/AutoscrollAnimation.cpp',
354
'apz/src/Axis.cpp',
355
'apz/src/CheckerboardEvent.cpp',
356
'apz/src/DragTracker.cpp',
357
'apz/src/FocusState.cpp',
358
'apz/src/FocusTarget.cpp',
359
'apz/src/GenericScrollAnimation.cpp',
360
'apz/src/GestureEventListener.cpp',
361
'apz/src/HitTestingTreeNode.cpp',
362
'apz/src/InputBlockState.cpp',
363
'apz/src/InputQueue.cpp',
364
'apz/src/KeyboardMap.cpp',
365
'apz/src/KeyboardScrollAction.cpp',
366
'apz/src/KeyboardScrollAnimation.cpp',
367
'apz/src/OverscrollHandoffState.cpp',
368
'apz/src/PotentialCheckerboardDurationTracker.cpp',
369
'apz/src/QueuedInput.cpp',
370
'apz/src/SimpleVelocityTracker.cpp',
371
'apz/src/WheelScrollAnimation.cpp',
372
'apz/testutil/APZTestData.cpp',
373
'apz/util/ActiveElementManager.cpp',
374
'apz/util/APZCCallbackHelper.cpp',
375
'apz/util/APZEventState.cpp',
376
'apz/util/APZThreadUtils.cpp',
377
'apz/util/CheckerboardReportService.cpp',
378
'apz/util/ChromeProcessController.cpp',
379
'apz/util/ContentProcessController.cpp',
380
'apz/util/DoubleTapToZoom.cpp',
381
'apz/util/InputAPZContext.cpp',
382
'apz/util/ScrollLinkedEffectDetector.cpp',
383
'apz/util/TouchActionHelper.cpp',
384
'apz/util/TouchCounter.cpp',
385
'AsyncCanvasRenderer.cpp',
386
'AxisPhysicsModel.cpp',
387
'AxisPhysicsMSDModel.cpp',
388
'basic/BasicCanvasLayer.cpp',
389
'basic/BasicColorLayer.cpp',
390
'basic/BasicContainerLayer.cpp',
391
'basic/BasicImages.cpp',
392
'basic/BasicLayerManager.cpp',
393
'basic/BasicLayersImpl.cpp',
394
'basic/BasicPaintedLayer.cpp',
395
'basic/TextureHostBasic.cpp',
396
'BSPTree.cpp',
397
'BufferTexture.cpp',
398
'CanvasDrawEventRecorder.cpp',
399
'CanvasRenderer.cpp',
400
'client/CanvasClient.cpp',
401
'client/ClientCanvasLayer.cpp',
402
'client/ClientCanvasRenderer.cpp',
403
'client/ClientColorLayer.cpp',
404
'client/ClientContainerLayer.cpp',
405
'client/ClientImageLayer.cpp',
406
'client/ClientLayerManager.cpp',
407
'client/ClientPaintedLayer.cpp',
408
'client/ClientTiledPaintedLayer.cpp',
409
'client/CompositableClient.cpp',
410
'client/ContentClient.cpp',
411
'client/GPUVideoTextureClient.cpp',
412
'client/ImageClient.cpp',
413
'client/MultiTiledContentClient.cpp',
414
'client/SingleTiledContentClient.cpp',
415
'client/TextureClientPool.cpp',
416
'client/TextureClientRecycleAllocator.cpp',
417
'client/TextureClientSharedSurface.cpp',
418
'client/TextureRecorded.cpp',
419
'client/TiledContentClient.cpp',
420
'composite/AsyncCompositionManager.cpp',
421
'composite/CanvasLayerComposite.cpp',
422
'composite/ColorLayerComposite.cpp',
423
'composite/CompositableHost.cpp',
424
'composite/CompositorScreenshotGrabber.cpp',
425
'composite/ContainerLayerComposite.cpp',
426
'composite/ContentHost.cpp',
427
'composite/Diagnostics.cpp',
428
'composite/FPSCounter.cpp',
429
'composite/FrameUniformityData.cpp',
430
'composite/GPUVideoTextureHost.cpp',
431
'composite/ImageComposite.cpp',
432
'composite/ImageHost.cpp',
433
'composite/ImageLayerComposite.cpp',
434
'composite/LayerManagerComposite.cpp',
435
'composite/PaintedLayerComposite.cpp',
436
'composite/TextRenderer.cpp',
437
'composite/TextureHost.cpp',
438
'composite/TiledContentHost.cpp',
439
'CompositionRecorder.cpp',
440
'Compositor.cpp',
441
'CopyableCanvasRenderer.cpp',
442
'Effects.cpp',
443
'FrameMetrics.cpp',
444
'GLImages.cpp',
445
'ImageDataSerializer.cpp',
446
'ImageLayers.cpp',
447
'ipc/APZChild.cpp',
448
'ipc/APZCTreeManagerChild.cpp',
449
'ipc/APZCTreeManagerParent.cpp',
450
'ipc/APZInputBridgeChild.cpp',
451
'ipc/APZInputBridgeParent.cpp',
452
'ipc/CanvasChild.cpp',
453
'ipc/CanvasThread.cpp',
454
'ipc/CanvasTranslator.cpp',
455
'ipc/CompositableTransactionParent.cpp',
456
'ipc/CompositorBench.cpp',
457
'ipc/CompositorBridgeChild.cpp',
458
'ipc/CompositorBridgeParent.cpp',
459
'ipc/CompositorManagerChild.cpp',
460
'ipc/CompositorManagerParent.cpp',
461
'ipc/CompositorThread.cpp',
462
'ipc/CompositorVsyncScheduler.cpp',
463
'ipc/ContentCompositorBridgeParent.cpp',
464
'ipc/ImageBridgeChild.cpp',
465
'ipc/ImageBridgeParent.cpp',
466
'ipc/ISurfaceAllocator.cpp',
467
'ipc/LayerAnimationUtils.cpp',
468
'ipc/LayerTransactionChild.cpp',
469
'ipc/LayerTransactionParent.cpp',
470
'ipc/LayerTreeOwnerTracker.cpp',
471
'ipc/RefCountedShmem.cpp',
472
'ipc/RemoteContentController.cpp',
473
'ipc/ShadowLayers.cpp',
474
'ipc/SharedPlanarYCbCrImage.cpp',
475
'ipc/SharedRGBImage.cpp',
476
'ipc/SharedSurfacesChild.cpp',
477
'ipc/SharedSurfacesParent.cpp',
478
'ipc/UiCompositorControllerChild.cpp',
479
'ipc/UiCompositorControllerParent.cpp',
480
'ipc/VideoBridgeChild.cpp',
481
'ipc/VideoBridgeParent.cpp',
482
'Layers.cpp',
483
'LayerScope.cpp',
484
'LayersHelpers.cpp',
485
'LayersLogging.cpp',
486
'LayerSorter.cpp',
487
'LayersTypes.cpp',
488
'LayerTreeInvalidation.cpp',
489
'MemoryPressureObserver.cpp',
490
'mlgpu/BufferCache.cpp',
491
'mlgpu/CanvasLayerMLGPU.cpp',
492
'mlgpu/ContainerLayerMLGPU.cpp',
493
'mlgpu/FrameBuilder.cpp',
494
'mlgpu/ImageLayerMLGPU.cpp',
495
'mlgpu/LayerManagerMLGPU.cpp',
496
'mlgpu/LayerMLGPU.cpp',
497
'mlgpu/MaskOperation.cpp',
498
'mlgpu/MemoryReportingMLGPU.cpp',
499
'mlgpu/MLGDevice.cpp',
500
'mlgpu/MLGPUScreenshotGrabber.cpp',
501
'mlgpu/PaintedLayerMLGPU.cpp',
502
'mlgpu/RenderPassMLGPU.cpp',
503
'mlgpu/RenderViewMLGPU.cpp',
504
'mlgpu/SharedBufferMLGPU.cpp',
505
'mlgpu/StagingBuffer.cpp',
506
'mlgpu/TexturedLayerMLGPU.cpp',
507
'mlgpu/TextureSourceProviderMLGPU.cpp',
508
'opengl/CompositingRenderTargetOGL.cpp',
509
'opengl/CompositorOGL.cpp',
510
'opengl/GLBlitTextureImageHelper.cpp',
511
'opengl/OGLShaderProgram.cpp',
512
'opengl/TextureClientOGL.cpp',
513
'opengl/TextureHostOGL.cpp',
514
'PaintThread.cpp',
515
'ProfilerScreenshots.cpp',
516
'ReadbackProcessor.cpp',
517
'RenderTrace.cpp',
518
'RotatedBuffer.cpp',
519
'ShareableCanvasRenderer.cpp',
520
'SourceSurfaceSharedData.cpp',
521
'SourceSurfaceVolatileData.cpp',
522
'SyncObject.cpp',
523
'TextureSourceProvider.cpp',
524
'TextureWrapperImage.cpp',
525
'wr/AsyncImagePipelineManager.cpp',
526
'wr/ClipManager.cpp',
527
'wr/DisplayItemCache.cpp',
528
'wr/IpcResourceUpdateQueue.cpp',
529
'wr/RenderRootStateManager.cpp',
530
'wr/RenderRootTypes.cpp',
531
'wr/StackingContextHelper.cpp',
532
'wr/WebRenderBridgeChild.cpp',
533
'wr/WebRenderBridgeParent.cpp',
534
'wr/WebRenderCanvasRenderer.cpp',
535
'wr/WebRenderCommandBuilder.cpp',
536
'wr/WebRenderCompositionRecorder.cpp',
537
'wr/WebRenderDrawEventRecorder.cpp',
538
'wr/WebRenderImageHost.cpp',
539
'wr/WebRenderLayerManager.cpp',
540
'wr/WebRenderLayersLogging.cpp',
541
'wr/WebRenderScrollData.cpp',
542
'wr/WebRenderUserData.cpp',
543
# XXX here are some unified build error.
544
#'wr/WebRenderTextureHost.cpp'
545
]
546
547
SOURCES += [
548
'basic/BasicCompositor.cpp',
549
'basic/BasicImageLayer.cpp',
550
'client/TextureClient.cpp',
551
'ImageContainer.cpp',
552
'PersistentBufferProvider.cpp',
553
'protobuf/LayerScopePacket.pb.cc',
554
'wr/WebRenderTextureHost.cpp',
555
]
556
557
DEFINES['GOOGLE_PROTOBUF_NO_RTTI'] = True
558
DEFINES['GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER'] = True
559
560
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
561
SOURCES += [
562
'basic/MacIOSurfaceTextureHostBasic.cpp',
563
'opengl/MacIOSurfaceTextureClientOGL.cpp',
564
'opengl/MacIOSurfaceTextureHostOGL.cpp',
565
]
566
567
IPDL_SOURCES += [
568
'ipc/LayersMessages.ipdlh',
569
'ipc/LayersSurfaces.ipdlh',
570
'ipc/PAPZ.ipdl',
571
'ipc/PAPZCTreeManager.ipdl',
572
'ipc/PAPZInputBridge.ipdl',
573
'ipc/PCanvas.ipdl',
574
'ipc/PCompositorBridge.ipdl',
575
'ipc/PCompositorBridgeTypes.ipdlh',
576
'ipc/PCompositorManager.ipdl',
577
'ipc/PImageBridge.ipdl',
578
'ipc/PLayerTransaction.ipdl',
579
'ipc/PTexture.ipdl',
580
'ipc/PUiCompositorController.ipdl',
581
'ipc/PVideoBridge.ipdl',
582
'ipc/PWebRenderBridge.ipdl',
583
'ipc/WebRenderMessages.ipdlh',
584
]
585
586
include('/ipc/chromium/chromium-config.mozbuild')
587
588
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'windows':
589
GeneratedFile('CompositorD3D11Shaders.h', script='d3d11/genshaders.py',
590
inputs=['d3d11/shaders.manifest'])
591
GeneratedFile('MLGShaders.h', script='d3d11/genshaders.py',
592
inputs=['d3d11/mlgshaders/shaders.manifest'])
593
594
LOCAL_INCLUDES += [
595
'/docshell/base', # for nsDocShell.h
596
'/layout/base', # for TouchManager.h
597
'/layout/generic', # for nsTextFrame.h
598
'/media/libyuv/libyuv/include', # for libyuv.h
599
]
600
601
FINAL_LIBRARY = 'xul'
602
603
if CONFIG['MOZ_DEBUG']:
604
DEFINES['D3D_DEBUG_INFO'] = True
605
606
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
607
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
608
609
if CONFIG['ENABLE_TESTS']:
610
DIRS += ['apz/test/gtest']
611
DIRS += ['apz/test/gtest/mvm']
612
613
MOCHITEST_MANIFESTS += ['apz/test/mochitest/mochitest.ini']
614
MOCHITEST_CHROME_MANIFESTS += ['apz/test/mochitest/chrome.ini']
615
BROWSER_CHROME_MANIFESTS += ['apz/test/mochitest/browser.ini']
616
617
CXXFLAGS += CONFIG['MOZ_CAIRO_CFLAGS']
618
CXXFLAGS += CONFIG['TK_CFLAGS']
619
620
LOCAL_INCLUDES += CONFIG['SKIA_INCLUDES']
621
622
if CONFIG['CC_TYPE'] in ('clang', 'gcc'):
623
CXXFLAGS += ['-Wno-error=shadow']
624
# Suppress warnings in third-party code.
625
CXXFLAGS += [
626
'-Wno-maybe-uninitialized'
627
]
628
629
if CONFIG['MOZ_ENABLE_SKIA']:
630
UNIFIED_SOURCES += [
631
'composite/PaintCounter.cpp',
632
]
633
634
if CONFIG['FUZZING'] and CONFIG['FUZZING_INTERFACES']:
635
TEST_DIRS += [
636
'ipc/fuzztest'
637
]
638
639
# Add libFuzzer configuration directives
640
include('/tools/fuzzing/libfuzzer-config.mozbuild')