Skip to content
Snippets Groups Projects
  1. Nov 16, 2023
  2. Oct 16, 2023
  3. Oct 11, 2023
  4. Oct 10, 2023
    • Treehugger Robot's avatar
    • Jim Shargo's avatar
      git: Add "**/target" to gitignore · 70a2438d
      Jim Shargo authored
      This is an annoying artifact generated sometimes by working in rust. It
      can interfere with git operations and we shouldn't let it be committed.
      
      Other packages have similar rules, so this should be OK.
      
      Test: n/a
      Change-Id: I5f166dadb81d246c6d2a587a68299999db91cc11
      70a2438d
    • Jim Shargo's avatar
      Merge changes from topic "nativewindow-rust" into main · 5d6006d8
      Jim Shargo authored
      * changes:
        nativewindow: Misc. improvements for AHardwareBuffer Rust wrapper
        nativewindow: Add more benchmarks to evaluate FFI costs
        nativewindow: Add C++/Rust benchmarks
        Add missing safety comments.
        libnativewindow: Add rust library and set up bindgen
      5d6006d8
    • Jim Shargo's avatar
      nativewindow: Misc. improvements for AHardwareBuffer Rust wrapper · b69c6ef0
      Jim Shargo authored
      Changes include:
      
        - Rename AHardwareBuffer to HardwareBuffer
        - Expose AHardwareBuffer as a raw pointer type
        - Making HardwareBuffer Send
        - HardwareBuffer now derives Debug, PartialEq and Eq
        - Use NonNull instead of a *mut pointer
        - Adding an into_raw function to match from_raw
        - Adding a Clone impl that acquires a ref
      
      Bug: 296449936, 296100790
      Test: atest libnativewindow_rs-internal_test
      Merged-In: Iaf916fabe49190f47abd1a9ed34afdb76fd20e40
      Change-Id: I5da6375582e98e8783b31ad8424f1e21c33467e5
      b69c6ef0
    • Jim Shargo's avatar
      nativewindow: Add more benchmarks to evaluate FFI costs · ba294d7d
      Jim Shargo authored
      This CL adds two new benchmarks, one for getting an AHardwareBuffer's ID
      and another for getting its description.
      
      These should (and do) ultimately take the same amount of time.
      
      Test: just adding new tests
      Merged-In: I5e09a2736ab829ca465aaa4073b439a605d49b5a
      Change-Id: I7ee6dd4e989c85fe18221f51a998ae1c25221800
      ba294d7d
    • Jim Shargo's avatar
      nativewindow: Add C++/Rust benchmarks · e4680d75
      Jim Shargo authored
      Test: atest nativewindow_buffer_benchmarks_rs nativewindow_buffer_benchmarks_cc
      Merged-In: Ia2898439da46e57cf65e3d64030d98f052a694c6
      Change-Id: Ib5aaa97f7130f1964824a2f6c8ca85d72d61ce4f
      e4680d75
    • Andrew Walbran's avatar
      Add missing safety comments. · 03350bc9
      Andrew Walbran authored
      These will soon be required by a lint.
      
      Bug: 290018030
      Test: m rust
      Merged-In: Iaa33bab93c458d963d45ec68daf243057b9f1c15
      Change-Id: Ia822853e44cc74d0c27622c8d30ca7c404058663
      03350bc9
    • Jim Shargo's avatar
      libnativewindow: Add rust library and set up bindgen · 7df9f759
      Jim Shargo authored
      For now we only expose AHardwareBuffer, but the exposed bindings will
      make it easy to also expose ANativeWindow, ADataspace, and others in the
      future.
      
      NOTE: This makes the new presubmit post-submit to appease the SLO
      checker
      
      Bug: 291954749
      Test: Added new unit tests for both bindings and the rust library.
      Merged-In: I8ef24fc9111bb3fb72a4cdd941742d42d72fa776
      Change-Id: I1dc87c9012fc1c1b805716cf7252fba2da11aec2
      7df9f759
    • Tomasz Wasilczyk's avatar
  5. Oct 09, 2023
  6. Oct 07, 2023
  7. Oct 06, 2023
  8. Oct 05, 2023
Loading