Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(448)

Unified Diff: ui/ozone/common/egl_util.cc

Issue 2190353003: Delete old Ozone surface creation API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/ozone/common/egl_util.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/common/egl_util.cc
diff --git a/ui/ozone/common/egl_util.cc b/ui/ozone/common/egl_util.cc
index b33407ae5428013d0e31c363dad107bd72de9ce7..0dd4d33250e4bd1d7ac21f722d7fe3a748e59b14 100644
--- a/ui/ozone/common/egl_util.cc
+++ b/ui/ozone/common/egl_util.cc
@@ -86,27 +86,4 @@ EGLConfig ChooseEGLConfig(EGLDisplay display, const int32_t* attributes) {
return config;
}
-void* /* EGLConfig */ ChooseEGLConfig(const EglConfigCallbacks& egl,
- const int32_t* attributes) {
- void* config;
- int32_t num_configs;
- if (!egl.choose_config.Run(attributes, nullptr, 0, &num_configs)) {
- LOG(ERROR) << "eglChooseConfig failed with error "
- << egl.get_last_error_string.Run();
- return nullptr;
- }
-
- if (num_configs == 0) {
- LOG(ERROR) << "No suitable EGL configs found.";
- return nullptr;
- }
-
- if (!egl.choose_config.Run(attributes, &config, 1, &num_configs)) {
- LOG(ERROR) << "eglChooseConfig failed with error "
- << egl.get_last_error_string.Run();
- return nullptr;
- }
- return config;
-}
-
} // namespace ui
« no previous file with comments | « ui/ozone/common/egl_util.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698