[Webkit-unassigned] [Bug 67499] [chromium] Support CCHeadsUpDisplay in threaded compositing mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sat Mar 10 19:31:36 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=67499
--- Comment #3 from Shawn Singh <shawnsingh at chromium.org> 2012-03-10 19:31:37 PST ---
Task: implement a minimal, clean font atlas, initialized on main thread, used on impl thread.
This seems pretty straightforward, can you please let me know if there's something i'm stupidly overlooking?
class CCHeadsUpDisplayFont {
void initializeFontAtlas(... ) {
ASSERT( on main thread );
setup a ManagedTexture
paint monospace text on it using PlatformCanvas::Painter and WebCore::Font
}
void drawString(position, string, layerRenderer) {
set up the shader program
drawStringInternal(...);
}
void drawLines(position, height, vector<string>, layerRenderer) {
set up the shader program
for each line
drawStringInternal(...);
}
private:
void drawStringInternal(position, string, layerRenderer) {
for each char, give the tex coords and call drawTexturedQuad(...);
}
}
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list