Giter Club home page Giter Club logo

Comments (8)

h12w avatar h12w commented on June 14, 2024

I suggest rendering the page on a SDL2 surface. SDL2 is portable on all major platforms including iOS and Android. (I have made a Go binding package: https://github.com/hailiang/go-sdl ).

from cef2go.

cztomczak avatar cztomczak commented on June 14, 2024

Currently there is a bug in Go linker on Windows that prevents us from implementing app/client handlers, thus OSR cannot be implemented (at least on Windows). The plan was to create OSR example for Windows first (that's my main platform). See the code comments about the problem in the _InitializeGlobalCStructures() function.

There is Issue 2601 in the Go project that I think might be the cause of the problem.

from cef2go.

cztomczak avatar cztomczak commented on June 14, 2024

It turns out this is some problem with GCC on Windows when calling Chromium C API, as I've prepared a C example that does same things as in Go and these exceptions also occur. Reported problem on the CEF forum:

http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=11505

from cef2go.

cztomczak avatar cztomczak commented on June 14, 2024

App/Client handlers Windows issue was fixed in commit f789834. Nothing stands in way to implement OSR now.

from cef2go.

h12w avatar h12w commented on June 14, 2024

That's great news!

from cef2go.

cztomczak avatar cztomczak commented on June 14, 2024

Off-screen rendering support was implemented in paperlesspost fork (https://github.com/paperlesspost/cef2go). See cef/render_handler.go . This fork is tested on Linux only.

For an example usage of OnPaint callback see this commit:
https://github.com/paperlesspost/cef2go/blob/ada33ec9eaa634634eca89da69d1a48bccc22282/cef/cef_callbacks.go

from cef2go.

oldtree2008 avatar oldtree2008 commented on June 14, 2024

I use cef2go to develop a gis app. I use html5 webgl draw map. when I drag data file to the map. but Map dont't refresh. But I use cef c# wrapper, It can work. Chrome also can work.why?

I guess my problem may have something to do with the WM_PAINT event.

I am not sure.

from cef2go.

cztomczak avatar cztomczak commented on June 14, 2024

@oldtree2008 Please do not ask questions in the tracker. Do not talk off-topic. Use forum.

from cef2go.

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.