summaryrefslogtreecommitdiff
path: root/chromium/components/mus/gles2/gl_surface_adapter.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-04 14:17:57 +0100
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2017-01-05 10:05:06 +0000
commit39d357e3248f80abea0159765ff39554affb40db (patch)
treeaba0e6bfb76de0244bba0f5fdbd64b830dd6e621 /chromium/components/mus/gles2/gl_surface_adapter.cc
parent87778abf5a1f89266f37d1321b92a21851d8244d (diff)
downloadqtwebengine-chromium-39d357e3248f80abea0159765ff39554affb40db.tar.gz
BASELINE: Update Chromium to 55.0.2883.105
And updates ninja to 1.7.2 Change-Id: I20d43c737f82764d857ada9a55586901b18b9243 Reviewed-by: Michael BrĂ¼ning <michael.bruning@qt.io>
Diffstat (limited to 'chromium/components/mus/gles2/gl_surface_adapter.cc')
-rw-r--r--chromium/components/mus/gles2/gl_surface_adapter.cc57
1 files changed, 0 insertions, 57 deletions
diff --git a/chromium/components/mus/gles2/gl_surface_adapter.cc b/chromium/components/mus/gles2/gl_surface_adapter.cc
deleted file mode 100644
index df1761b5854..00000000000
--- a/chromium/components/mus/gles2/gl_surface_adapter.cc
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2016 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 "components/mus/gles2/gl_surface_adapter.h"
-
-#include "base/bind.h"
-
-namespace mus {
-
-GLSurfaceAdapterMus::GLSurfaceAdapterMus(scoped_refptr<gl::GLSurface> surface)
- : gl::GLSurfaceAdapter(surface.get()),
- surface_(surface),
- weak_ptr_factory_(this) {}
-
-GLSurfaceAdapterMus::~GLSurfaceAdapterMus() {}
-
-void GLSurfaceAdapterMus::SwapBuffersAsync(
- const GLSurface::SwapCompletionCallback& callback) {
- gl::GLSurfaceAdapter::SwapBuffersAsync(
- base::Bind(&GLSurfaceAdapterMus::WrappedCallbackForSwapBuffersAsync,
- weak_ptr_factory_.GetWeakPtr(), callback));
-}
-
-void GLSurfaceAdapterMus::PostSubBufferAsync(
- int x,
- int y,
- int width,
- int height,
- const GLSurface::SwapCompletionCallback& callback) {
- gl::GLSurfaceAdapter::PostSubBufferAsync(
- x, y, width, height,
- base::Bind(&GLSurfaceAdapterMus::WrappedCallbackForSwapBuffersAsync,
- weak_ptr_factory_.GetWeakPtr(), callback));
-}
-
-void GLSurfaceAdapterMus::CommitOverlayPlanesAsync(
- const GLSurface::SwapCompletionCallback& callback) {
- gl::GLSurfaceAdapter::CommitOverlayPlanesAsync(
- base::Bind(&GLSurfaceAdapterMus::WrappedCallbackForSwapBuffersAsync,
- weak_ptr_factory_.GetWeakPtr(), callback));
-}
-
-void GLSurfaceAdapterMus::WrappedCallbackForSwapBuffersAsync(
- const gl::GLSurface::SwapCompletionCallback& original_callback,
- gfx::SwapResult result) {
- if (!adapter_callback_.is_null())
- adapter_callback_.Run(result);
- original_callback.Run(result);
-}
-
-void GLSurfaceAdapterMus::SetGpuCompletedSwapBuffersCallback(
- gl::GLSurface::SwapCompletionCallback callback) {
- adapter_callback_ = std::move(callback);
-}
-
-} // namespace mus