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

Unified Diff: ui/ozone/platform/cast/surface_ozone_egl_cast.cc

Issue 2179163003: Convert Ozone cast to directly create GLSurfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change to PBuffer. Created 4 years, 5 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/platform/cast/surface_ozone_egl_cast.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/surface_ozone_egl_cast.cc
diff --git a/ui/ozone/platform/cast/surface_ozone_egl_cast.cc b/ui/ozone/platform/cast/surface_ozone_egl_cast.cc
deleted file mode 100644
index 688140c26917e94c54bf8dbf2ffcb3bd89bd5fe2..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/cast/surface_ozone_egl_cast.cc
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/ozone/platform/cast/surface_ozone_egl_cast.h"
-
-#include "third_party/khronos/EGL/egl.h"
-#include "ui/gfx/vsync_provider.h"
-#include "ui/ozone/common/egl_util.h"
-#include "ui/ozone/platform/cast/surface_factory_cast.h"
-
-namespace ui {
-
-SurfaceOzoneEglCast::~SurfaceOzoneEglCast() {
- parent_->ChildDestroyed();
-}
-
-intptr_t SurfaceOzoneEglCast::GetNativeWindow() {
- return reinterpret_cast<intptr_t>(parent_->GetNativeWindow());
-}
-
-bool SurfaceOzoneEglCast::OnSwapBuffers() {
- parent_->OnSwapBuffers();
- return true;
-}
-
-void SurfaceOzoneEglCast::OnSwapBuffersAsync(
- const SwapCompletionCallback& callback) {
- parent_->OnSwapBuffers();
- callback.Run(gfx::SwapResult::SWAP_ACK);
-}
-
-bool SurfaceOzoneEglCast::ResizeNativeWindow(const gfx::Size& viewport_size) {
- return parent_->ResizeDisplay(viewport_size);
-}
-
-std::unique_ptr<gfx::VSyncProvider> SurfaceOzoneEglCast::CreateVSyncProvider() {
- return nullptr;
-}
-
-void* /* EGLConfig */ SurfaceOzoneEglCast::GetEGLSurfaceConfig(
- const EglConfigCallbacks& egl) {
- EGLint config_attribs[] = {EGL_BUFFER_SIZE,
- 32,
- EGL_ALPHA_SIZE,
- 8,
- EGL_BLUE_SIZE,
- 8,
- EGL_GREEN_SIZE,
- 8,
- EGL_RED_SIZE,
- 8,
- EGL_RENDERABLE_TYPE,
- EGL_OPENGL_ES2_BIT,
- EGL_SURFACE_TYPE,
- EGL_WINDOW_BIT,
- EGL_NONE};
- return ChooseEGLConfig(egl, config_attribs);
-}
-
-} // namespace ui
« no previous file with comments | « ui/ozone/platform/cast/surface_ozone_egl_cast.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698