summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-06 00:35:04 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-06 00:35:04 +0000
commit983f7bd3fa88bbdac942dbfaf0269b1684a5c1ee (patch)
tree119108c285b45fa1f8caa4b02016e2604f24684d /webkit
parent4d590127a9d0aff4aa077b2eb1f8988619ac05c2 (diff)
downloadchromium_src-983f7bd3fa88bbdac942dbfaf0269b1684a5c1ee.zip
chromium_src-983f7bd3fa88bbdac942dbfaf0269b1684a5c1ee.tar.gz
chromium_src-983f7bd3fa88bbdac942dbfaf0269b1684a5c1ee.tar.bz2
Switch from using GdkPixbuf to cairo for painting on Drawables.
Make everything use ARGB order in registers (B.G.R.A order in memory on little-endian systems) Review URL: http://codereview.chromium.org/8227 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/gtk/webwidget_host.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/webkit/tools/test_shell/gtk/webwidget_host.cc b/webkit/tools/test_shell/gtk/webwidget_host.cc
index 79e39f58..f89f5f9 100644
--- a/webkit/tools/test_shell/gtk/webwidget_host.cc
+++ b/webkit/tools/test_shell/gtk/webwidget_host.cc
@@ -4,6 +4,7 @@
#include "webkit/tools/test_shell/webwidget_host.h"
+#include <cairo/cairo.h>
#include <gtk/gtk.h>
#include "base/logging.h"
@@ -232,8 +233,11 @@ void WebWidgetHost::Paint() {
gfx::PlatformDeviceLinux &platdev = canvas_->getTopPlatformDevice();
gfx::BitmapPlatformDeviceLinux* const bitdev =
static_cast<gfx::BitmapPlatformDeviceLinux* >(&platdev);
- gdk_draw_pixbuf(view_->window, NULL, bitdev->pixbuf(),
- 0, 0, 0, 0, width, height, GDK_RGB_DITHER_NONE, 0, 0);
+
+ cairo_t* cairo_drawable = gdk_cairo_create(view_->window);
+ cairo_set_source_surface(cairo_drawable, bitdev->surface(), 0, 0);
+ cairo_paint(cairo_drawable);
+ cairo_destroy(cairo_drawable);
}
void WebWidgetHost::ResetScrollRect() {