mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-15 06:20:41 +00:00
f488575a07
Create the corresponding RenderTextureHost type and WR commands for DXGI texture type. The DXGITextureHostD3D11 will use 1 or 2 image keys for non-nv12 and nv12 texture format. The DXGIYCbCrTextureHostD3D11 is a special case. The WR uses ANGLE in windows platform, but the ANGLE doesn't support A8 format directx texture directly. So, we use libyuv to convert the DXGIYCbCrTextureHostD3D11 texture buffer into RGBA format buffer and use WR::AddImage() for that image. This is a slow code path. We will refine this case later. The whole RenderD3D11TextureHostOGL implementation is in the next patch. MozReview-Commit-ID: F4mPCALj1OY
52 lines
1.3 KiB
Python
52 lines
1.3 KiB
Python
# -*- Mode: python; indent-tabs-mode: nil; tab-width: 40 -*-
|
|
# vim: set filetype=python:
|
|
# 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/.
|
|
|
|
with Files('**'):
|
|
BUG_COMPONENT = ('Core', 'Graphics: WebRender')
|
|
|
|
EXPORTS.mozilla.webrender += [
|
|
'RenderBufferTextureHost.h',
|
|
'RendererOGL.h',
|
|
'RenderTextureHost.h',
|
|
'RenderTextureHostOGL.h',
|
|
'RenderThread.h',
|
|
'webrender_ffi.h',
|
|
'webrender_ffi_generated.h',
|
|
'WebRenderAPI.h',
|
|
'WebRenderTypes.h',
|
|
]
|
|
|
|
UNIFIED_SOURCES += [
|
|
'Moz2DImageRenderer.cpp',
|
|
'RenderBufferTextureHost.cpp',
|
|
'RendererOGL.cpp',
|
|
'RenderTextureHost.cpp',
|
|
'RenderTextureHostOGL.cpp',
|
|
'RenderThread.cpp',
|
|
'WebRenderAPI.cpp',
|
|
]
|
|
|
|
if CONFIG['MOZ_WIDGET_TOOLKIT'] == 'cocoa':
|
|
EXPORTS.mozilla.webrender += [
|
|
'RenderMacIOSurfaceTextureHostOGL.h',
|
|
]
|
|
UNIFIED_SOURCES += [
|
|
'RenderMacIOSurfaceTextureHostOGL.cpp',
|
|
]
|
|
|
|
if CONFIG['MOZ_ENABLE_D3D10_LAYER']:
|
|
DEFINES['MOZ_ENABLE_D3D10_LAYER'] = True
|
|
EXPORTS.mozilla.webrender += [
|
|
'RenderD3D11TextureHostOGL.h',
|
|
]
|
|
UNIFIED_SOURCES += [
|
|
'RenderD3D11TextureHostOGL.cpp',
|
|
]
|
|
|
|
include('/ipc/chromium/chromium-config.mozbuild')
|
|
|
|
FINAL_LIBRARY = 'xul'
|