compositor/factory.cpp \
compositor/nativesurface.cpp \
compositor/renderstate.cpp \
- compositor/va/vasurface.cpp \
compositor/va/varenderer.cpp \
compositor/va/vautils.cpp \
core/gpudevice.cpp \
va_SOURCES =\
compositor/va/varenderer.cpp \
- compositor/va/vasurface.cpp \
compositor/va/vautils.cpp \
$(NULL)
#include <platformdefines.h>
+#include <va/va.h>
+
namespace hwcomposer {
// clang-format off
#endif
#include "va/varenderer.h"
-#include "va/vasurface.h"
namespace hwcomposer {
}
NativeSurface* CreateVideoBuffer(uint32_t width, uint32_t height) {
- return new VASurface(width, height);
+ return new NativeSurface(width, height);
}
Renderer* Create3DRenderer() {
bool InitializeForOffScreenRendering(HWCNativeHandle native_handle,
ResourceManager* resource_manager);
- virtual bool MakeCurrent() = 0;
+ virtual bool MakeCurrent() {
+ return false;
+ }
int GetWidth() const {
return width_;
#include "overlaybuffer.h"
#include "renderstate.h"
-#include "vasurface.h"
+#ifdef ANDROID
+#include <va/va_android.h>
+#endif
#define ANDROID_DISPLAY_HANDLE 0x18C34078
#define UNUSED(x) (void*)(&x)
}
// Get Output Surface.
- OverlayLayer* layer_out = surface->GetLayer();
+ const OverlayLayer* layer_out = surface->GetLayer();
const MediaResourceHandle& out_resource =
layer_out->GetBuffer()->GetMediaResource(
va_display_, layer_out->GetSourceCropWidth(),
}
VARectangle surface_region;
- OverlayLayer* layer_in = state.layer_;
+ const OverlayLayer* layer_in = state.layer_;
const HwcRect<float>& source_crop = layer_in->GetSourceCrop();
surface_region.x = static_cast<int>(source_crop.left);
surface_region.y = static_cast<int>(source_crop.top);
#include "vautils.h"
-#include <platformdefines.h>
+#include <va/va.h>
namespace hwcomposer {
+++ /dev/null
-/*
-// Copyright (c) 2017 Intel Corporation
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-*/
-
-#include "vasurface.h"
-
-#include "overlaybuffer.h"
-
-namespace hwcomposer {
-
-VASurface::VASurface(uint32_t width, uint32_t height)
- : NativeSurface(width, height) {
-}
-
-VASurface::~VASurface() {
-}
-
-bool VASurface::MakeCurrent() {
- return true;
-}
-
-} // namespace hwcomposer
+++ /dev/null
-/*
-// Copyright (c) 2016 Intel Corporation
-//
-// Licensed under the Apache License, Version 2.0 (the "License");
-// you may not use this file except in compliance with the License.
-// You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing, software
-// distributed under the License is distributed on an "AS IS" BASIS,
-// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-// See the License for the specific language governing permissions and
-// limitations under the License.
-*/
-
-#ifndef COMMON_COMPOSITOR_VA_VASURFACE_H_
-#define COMMON_COMPOSITOR_VA_VASURFACE_H_
-
-#include "nativesurface.h"
-
-namespace hwcomposer {
-
-class VASurface : public NativeSurface {
- public:
- VASurface() = default;
- ~VASurface() override;
- VASurface(uint32_t width, uint32_t height);
-
- bool MakeCurrent() override;
-};
-
-} // namespace hwcomposer
-#endif // COMMON_COMPOSITOR_VA_VASURFACE_H_
#include "vautils.h"
-#include <platformdefines.h>
+#include <va/va.h>
#include <drm_fourcc.h>
#include <ui/GraphicBuffer.h>
#include "platformcommondefines.h"
#include <cros_gralloc_handle.h>
-#include <va/va_android.h>
#define DRV_I915 1
#include <i915_private_android_types.h>
#include <xf86drm.h>
#include <xf86drmMode.h>
-#include <va/va.h>
-#include <va/va_vpp.h>
-#include <va/va_drmcommon.h>
#define DRM_FORMAT_NONE fourcc_code('0', '0', '0', '0')
$(LOCAL_PATH)/../os \
$(LOCAL_PATH)/../os/android \
$(LOCAL_PATH)/../wsi \
- $(LOCAL_PATH)/../wsi/drm
+ $(LOCAL_PATH)/../wsi/drm \
+ $(TARGET_OUT_HEADERS)/libva
LOCAL_SHARED_LIBRARIES += \
libva
#include "resourcemanager.h"
#include "vautils.h"
+#include <va/va_drmcommon.h>
+
namespace hwcomposer {
DrmBuffer::~DrmBuffer() {