There's an example of how to do this with skia in
src/app/resource_bundle.cc around line 146.  That said, you should use
cairo to paint in GTK.

On Wed, Aug 26, 2009 at 4:27 PM, Dean McNamee <de...@chromium.org> wrote:
>
> To answer the technical (non-political) part of this question.
>
> Create a SkBitmap which backs to some pixels.  Create a SkCanvas on
> top of it.  Call drawPaint or more directly drawColor.
>
> On Wed, Aug 26, 2009 at 4:17 PM, Nico Weber <tha...@chromium.org> wrote:
>>
>> When I talked with Aaron, he said porting the shelf to OS X isn't
>> something I should tackle unless I'm _really_ running out of things to
>> do, since they're not even sure they're going to keep it. Has this
>> changed, or is the situation different on linux for some reason?
>>
>> Nico
>>
>> On Wed, Aug 26, 2009 at 4:12 PM, Paweł Hajdan
>> Jr.<phajdan...@chromium.org> wrote:
>>> How do I create a SkBitmap of arbitrary size, filled with color of my choice
>>> (on Linux)?
>>> I'd need that for Linux extension shelf, and the Windows code for that seems
>>> not easily portable to Linux.
>>> >
>>>
>>
>> >
>>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
    http://groups.google.com/group/chromium-dev
-~----------~----~----~----~------~----~------~--~---

Reply via email to