-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ozone prototype: #4311
base: main
Are you sure you want to change the base?
Ozone prototype: #4311
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -555,6 +555,10 @@ void GpuDataManagerImplPrivate::InitializeGpuModes() { | |
#endif // BUILDFLAG(IS_FUCHSIA) | ||
} | ||
|
||
// hack | ||
fallback_modes_.clear(); | ||
fallback_modes_.push_back(gpu::GpuMode::HARDWARE_GL); | ||
|
||
Comment on lines
+558
to
+561
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be needed because of l.553 -- we should be taking [1] https://source.corp.google.com/h/lbshell-internal/cobalt_src/+/main:content/browser/gpu/gpu_data_manager_impl_private.cc;l=402-416?q=vulkanallowed&ss=h%2Flbshell-internal%2Fcobalt_src%2F%2B%2Frefs%2Fheads%2Fmain&start=1 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe #4361 will help removing this delta. |
||
FallBackToNextGpuMode(); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# Copyright 2024 The Chromium Authors | ||
# Use of this source code is governed by a BSD-style license that can be | ||
# found in the LICENSE file. | ||
|
||
import("//build/config/ozone.gni") | ||
|
||
visibility = [ | ||
"//ui/ozone/*", | ||
] | ||
|
||
source_set("starboard") { | ||
public_configs = [ | ||
] | ||
sources = [ | ||
"client_native_pixmap_factory_starboard.cc", | ||
"client_native_pixmap_factory_starboard.h", | ||
"gl_ozone_egl_starboard.cc", | ||
"gl_ozone_egl_starboard.h", | ||
"gl_surface_starboard.cc", | ||
"gl_surface_starboard.h", | ||
"overlay_manager_starboard.cc", | ||
"overlay_manager_starboard.h", | ||
"ozone_platform_starboard.cc", | ||
"ozone_platform_starboard.h", | ||
"platform_screen_starboard.cc", | ||
"platform_screen_starboard.h", | ||
"platform_window_starboard.cc", | ||
"platform_window_starboard.h", | ||
"surface_factory_starboard.cc", | ||
"surface_factory_starboard.h", | ||
"starboard_platform_event_source.h", | ||
"starboard_platform_event_source.cc", | ||
] | ||
|
||
defines = [ | ||
"OZONE_IMPLEMENTATION", | ||
] | ||
|
||
deps = [ | ||
"//base", | ||
"//starboard($starboard_toolchain)", | ||
"//ui/base/cursor", | ||
"//ui/base/ime", | ||
"//ui/events/ozone", | ||
"//ui/events/ozone/evdev", | ||
"//ui/events/ozone/layout", | ||
"//ui/gfx", | ||
"//ui/gfx/geometry", | ||
"//ui/ozone:ozone_base", | ||
"//ui/ozone/common", | ||
"//ui/platform_window", | ||
"//ui/platform_window/stub", | ||
] | ||
} | ||
|
||
source_set("test_support") { | ||
testonly = true | ||
|
||
sources = [ | ||
"starboard_ozone_ui_controls_test_helper.cc", | ||
"starboard_ozone_ui_controls_test_helper.h", | ||
] | ||
|
||
deps = [ | ||
"//ui/aura:aura", | ||
"//ui/base/x:test_support", | ||
] | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2024 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#include "ui/ozone/platform/starboard/client_native_pixmap_factory_starboard.h" | ||
|
||
#include "base/logging.h" | ||
#include "ui/ozone/common/stub_client_native_pixmap_factory.h" | ||
|
||
namespace ui { | ||
|
||
gfx::ClientNativePixmapFactory* CreateClientNativePixmapFactoryStarboard() { | ||
LOG(INFO) << "CreateClientNativePixmapFactoryStarboard"; | ||
return CreateStubClientNativePixmapFactory(); | ||
} | ||
|
||
} // namespace ui |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2024 The Chromium Authors | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#ifndef UI_OZONE_PLATFORM_STARBOARD_CLIENT_NATIVE_PIXMAP_FACTORY_STARBOARD_H_ | ||
#define UI_OZONE_PLATFORM_STARBOARD_CLIENT_NATIVE_PIXMAP_FACTORY_STARBOARD_H_ | ||
|
||
namespace gfx { | ||
class ClientNativePixmapFactory; | ||
} | ||
|
||
namespace ui { | ||
|
||
gfx::ClientNativePixmapFactory* CreateClientNativePixmapFactoryStarboard(); | ||
|
||
} // namespace ui | ||
|
||
#endif // UI_OZONE_PLATFORM_STARBOARD_CLIENT_NATIVE_PIXMAP_FACTORY_STARBOARD_H_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is probably needed/happening because we are taking
the IS_LINUX path in [1] - we should add an IS_STARBOARD
entry there (//gpu is a low level folder, like //base
or //media, so can know about "starboard").
[1] https://source.chromium.org/chromium/chromium/src/+/main:gpu/ipc/common/gpu_memory_buffer_support.cc;l=52-64?q=GetNativeGpuMemoryBufferType&ss=chromium