blob: 0b34b01ab24d55dd3bf9048265ecb99d643e02c9 [file] [log] [blame]
// Copyright 2017 Google Inc. All Rights Reserved.
//
// 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 <EGL/egl.h>
#include <windows.h>
// For __getActivationFactoryByPCWSTR custom definition.
#include "starboard/shared/uwp/application_uwp.h"
#include "starboard/shared/uwp/window_internal.h"
using Windows::UI::Core::CoreWindow;
// TODO: Make sure the width and height here behave well given that we want
// 1080 video, but perhaps 4k UI where applicable.
SbWindowPrivate::SbWindowPrivate(const SbWindowOptions* /*options*/)
: width(1920),
height(1080),
output_width(1920),
output_height(1080) {
egl_native_window_ = reinterpret_cast<EGLNativeWindowType>(
starboard::shared::uwp::ApplicationUwp::Get()->GetCoreWindow().Get());
}
SbWindowPrivate::~SbWindowPrivate() {}