chromium/ui/ozone/platform/wayland/test/mock_surface.cc

// Copyright 2019 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/wayland/test/mock_surface.h"

#include <linux-explicit-synchronization-unstable-v1-client-protocol.h>

#include "base/not_fatal_until.h"
#include "base/notreached.h"
#include "ui/ozone/platform/wayland/test/test_region.h"
#include "ui/ozone/platform/wayland/test/test_wayland_server_thread.h"
#include "ui/ozone/platform/wayland/test/test_zwp_linux_explicit_synchronization.h"

namespace wl {

namespace {

void Attach(wl_client* client,
            wl_resource* resource,
            wl_resource* buffer_resource,
            int32_t x,
            int32_t y) {}

void SetOpaqueRegion(wl_client* client,
                     wl_resource* resource,
                     wl_resource* region) {}

void SetInputRegion(wl_client* client,
                    wl_resource* resource,
                    wl_resource* region) {}

void Damage(wl_client* client,
            wl_resource* resource,
            int32_t x,
            int32_t y,
            int32_t width,
            int32_t height) {}

void Frame(struct wl_client* client,
           struct wl_resource* resource,
           uint32_t callback) {}

void Commit(wl_client* client, wl_resource* resource) {}

void SetBufferScale(wl_client* client, wl_resource* resource, int32_t scale) {}

void SetBufferTransform(struct wl_client* client,
                        struct wl_resource* resource,
                        int32_t transform) {}

void DamageBuffer(struct wl_client* client,
                  struct wl_resource* resource,
                  int32_t x,
                  int32_t y,
                  int32_t width,
                  int32_t height) {}

void SetAcquireFence(wl_client* client, wl_resource* resource, int32_t fd) {}

void GetRelease(wl_client* client, wl_resource* resource, uint32_t id) {}

}  // namespace

const struct wl_surface_interface kMockSurfaceImpl =;

const struct zwp_linux_surface_synchronization_v1_interface
    kMockZwpLinuxSurfaceSynchronizationImpl =;

MockSurface::MockSurface(wl_resource* resource) :{}

MockSurface::~MockSurface() {}

MockSurface* MockSurface::FromResource(wl_resource* resource) {}

void MockSurface::ClearBufferReleases() {}

void MockSurface::SetOpaqueRegionImpl(wl_resource* region) {}

void MockSurface::SetInputRegionImpl(wl_resource* region) {}

void MockSurface::AttachNewBuffer(wl_resource* buffer_resource,
                                  int32_t x,
                                  int32_t y) {}

void MockSurface::DestroyPrevAttachedBuffer() {}

void MockSurface::ReleaseBuffer(wl_resource* buffer) {}

void MockSurface::ReleaseBufferFenced(wl_resource* buffer,
                                      gfx::GpuFenceHandle release_fence) {}

void MockSurface::SendFrameCallback() {}

}  // namespace wl