Giter VIP home page Giter VIP logo

Comments (4)

suyambulingamrm avatar suyambulingamrm commented on June 10, 2024

Just a quick question regarding castanets support for Android.
I thought we can use chromium's posix code for shared memory on Android platform instead of ashmem so that we can have easy communication between linux/tizen-android.
On my verification of this approach, simple web pages work in linux(browser)-android(renderer) case.

So thought of asking your ideas on this.
@hyowon @hyunaranda @is46-kim @yg48 @joonghunpark @Chikdolman @Sunwoo-Nam

Will it be ok to use posix shared memory on Android. Or do we need to stick to ashmem ?

from castanets.

hyowon avatar hyowon commented on June 10, 2024

I think using shared_memory_posix on Android is okay.

from castanets.

suyambulingamrm avatar suyambulingamrm commented on June 10, 2024

The current status with the #146
basic google page rendering is working fine with Linux(B)-Android(R) case.

Visibly the performance seem to be slower than castanets_63 (linux-android case).

As we are using posix code for android now, the shared memory file path used is application's cache directory path which is /data/user/0/org.chromium.chrome/cache which is a regular file system. This seems to be the reason for the slow performance.
[base/files/file_util_android.cc].

Android's ashmem created file in /dev/ashmem which is a tmpfs. (RAM memory)
Even in Linux, tizen we use /dev/shm which is also tmpfs.

Opening /dev/ path through the posix code in android is not possible due to platform security.

from castanets.

suyambulingamrm avatar suyambulingamrm commented on June 10, 2024

Gpu Compositing on Android: #155

  1. GpuMemoryBufferHandle's mojo struct difference causes VALIDATION_ERROR_HEADER_UNKNOWN_METHOD. AHardwareBufferHandle is not required for the gpu compostion path. So it is made not to use it for now for castanets.
  2. Data types of SurfaceHandle are different between linux and android (int32_t vs AcceleratedWidget/unsigned long). So the data types are unified.
  3. As GpuBlackList entries are also part of mojo msgs, if the entries are different we face a DESERIALIZATION ERROR. So IgnoreGpuBlackList flag is added for linux, android for now.

from castanets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.