tree: d586236e715d54273b71a283b2a37ced4eaea55c [path history] [tgz]
  1. partition_alloc/
  2. BUILD.gn
  3. CMakeLists.txt
  4. README.md
src/dawn/partition_alloc/README.md

This directory provide Dawn a “no-op” partition_alloc implementation of raw_ptr. This is used only when dawn_partition_alloc_dir is not set.

Why not using the PartitionAlloc “no-op” implementation?

For now, we decided Dawn to provide its own. This allow the partition_alloc dependency to be optional. It makes it easier easier to integrate into other project (Skia, etc...) and build system (CMake, Bazel, etc..)

Moreover, partition_alloc is still depending on chromium‘s //build for now. It means it can only be used inside Dawn who has the same dependency. It can’t be used outside.

TODO(arthursonzogni): https://crbug.com/1464560

Provide additional files:

  • partition_alloc/pointers/raw_ptr_cast.h
  • partition_alloc/pointers/raw_ptr_exclusion.h
  • partition_alloc/pointers/raw_ref.h

Expand the raw_ptr implementation:

  • RawPtrTraits
  • raw_ptr::* extra functions.
  • etc...