Comments (8)
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.
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.
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.
App/Client handlers Windows issue was fixed in commit f789834. Nothing stands in way to implement OSR now.
from cef2go.
That's great news!
from cef2go.
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.
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.
@oldtree2008 Please do not ask questions in the tracker. Do not talk off-topic. Use forum.
from cef2go.
Related Issues (20)
- Building with CEF 64-bit for OS X question HOT 2
- How to set windows width and height? HOT 1
- error while loading shared libraries: libcef.so (sandboxing) HOT 1
- Restructure files to allow for easy import of cef2go package HOT 1
- Add Developer Tools to mouse context menu HOT 1
- Unable to compile on OSX 64bit HOT 1
- Mouse context menu and <select> control crash app on Mac
- android web view HOT 1
- Two suggestions: rebase cef2go on atom/electron & renaming HOT 2
- Update CEF binaries HOT 1
- Build failures on OSX
- The future of this project [DISCUSS] HOT 3
- Building on OSX El Capitan HOT 2
- compile error HOT 2
- CEF Callbacks to execute Go Code (communication mechanism) HOT 5
- compile error HOT 1
- Cannot build with go1.9 for GTK ?? HOT 2
- How to support flash player HOT 2
- possible to support linux and windows
- Propose a new Go CEF
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cef2go.