#include "ui/surface/transport_dib.h"
#include <stddef.h>
#include <memory>
#include "base/logging.h"
#include "base/memory/ptr_util.h"
#include "base/memory/shared_memory_mapping.h"
#include "base/memory/unsafe_shared_memory_region.h"
#include "base/numerics/checked_math.h"
#include "build/build_config.h"
#include "skia/ext/platform_canvas.h"
TransportDIB::TransportDIB(base::UnsafeSharedMemoryRegion region)
: … { … }
TransportDIB::~TransportDIB() = default;
std::unique_ptr<TransportDIB> TransportDIB::Map(
base::UnsafeSharedMemoryRegion region) { … }
std::unique_ptr<TransportDIB> TransportDIB::CreateWithHandle(
base::UnsafeSharedMemoryRegion region) { … }
std::unique_ptr<SkCanvas> TransportDIB::GetPlatformCanvas(int w,
int h,
bool opaque) { … }
bool TransportDIB::Map() { … }
void* TransportDIB::memory() const { … }
base::UnsafeSharedMemoryRegion* TransportDIB::shared_memory_region() { … }
bool TransportDIB::VerifyCanvasSize(int w, int h) { … }