chromium/ui/gl/gl_surface.cc

// Copyright 2012 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/gl/gl_surface.h"

#include "base/check.h"
#include "base/notreached.h"
#include "third_party/abseil-cpp/absl/base/attributes.h"
#include "ui/gfx/swap_result.h"
#include "ui/gl/gl_context.h"
#include "ui/gl/gl_surface_format.h"

namespace gl {

namespace {

ABSL_CONST_INIT thread_local GLSurface* current_surface =;

}  // namespace

// static
GpuPreference GLSurface::forced_gpu_preference_ =;

GLSurface::GLSurface() = default;

bool GLSurface::Initialize() {}

bool GLSurface::Initialize(GLSurfaceFormat format) {}

bool GLSurface::Resize(const gfx::Size& size,
                       float scale_factor,
                       const gfx::ColorSpace& color_space,
                       bool has_alpha) {}

bool GLSurface::Recreate() {}

bool GLSurface::SupportsPostSubBuffer() {}

bool GLSurface::SupportsAsyncSwap() {}

unsigned int GLSurface::GetBackingFramebufferObject() {}

void GLSurface::SwapBuffersAsync(SwapCompletionCallback completion_callback,
                                 PresentationCallback presentation_callback,
                                 gfx::FrameData data) {}

gfx::SwapResult GLSurface::PostSubBuffer(int x,
                                         int y,
                                         int width,
                                         int height,
                                         PresentationCallback callback,
                                         gfx::FrameData data) {}

void GLSurface::PostSubBufferAsync(int x,
                                   int y,
                                   int width,
                                   int height,
                                   SwapCompletionCallback completion_callback,
                                   PresentationCallback presentation_callback,
                                   gfx::FrameData data) {}

bool GLSurface::OnMakeCurrent(GLContext* context) {}

void* GLSurface::GetShareHandle() {}

GLDisplay* GLSurface::GetGLDisplay() {}

void* GLSurface::GetConfig() {}

gfx::VSyncProvider* GLSurface::GetVSyncProvider() {}

void GLSurface::SetVSyncEnabled(bool enabled) {}

bool GLSurface::IsSurfaceless() const {}

gfx::SurfaceOrigin GLSurface::GetOrigin() const {}

bool GLSurface::BuffersFlipped() const {}

bool GLSurface::SupportsOverridePlatformSize() const {}

bool GLSurface::SupportsSwapTimestamps() const {}

void GLSurface::SetEnableSwapTimestamps() {}

int GLSurface::GetBufferCount() const {}

bool GLSurface::SupportsPlaneGpuFences() const {}

EGLTimestampClient* GLSurface::GetEGLTimestampClient() {}

GLSurface* GLSurface::GetCurrent() {}

bool GLSurface::IsCurrent() {}

// static
void GLSurface::SetForcedGpuPreference(GpuPreference gpu_preference) {}

// static
GpuPreference GLSurface::AdjustGpuPreference(GpuPreference gpu_preference) {}

GLSurface::~GLSurface() {}

void GLSurface::ClearCurrent() {}

void GLSurface::SetCurrent() {}

base::WeakPtr<GLSurface> GLSurface::AsWeakPtr() {}

void GLSurface::InvalidateWeakPtrs() {}

bool GLSurface::HasWeakPtrs() {}

bool GLSurface::ExtensionsContain(const char* c_extensions, const char* name) {}

scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) {}

}  // namespace gl