Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1117)

Unified Diff: webkit/tools/test_shell/webwidget_host_gtk.cc

Issue 125109: Refactor the PlatformContext layer to have only one class. (Closed)
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/mac/webwidget_host.mm ('k') | webkit/tools/test_shell/webwidget_host_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/webwidget_host_gtk.cc
diff --git a/webkit/tools/test_shell/webwidget_host_gtk.cc b/webkit/tools/test_shell/webwidget_host_gtk.cc
old mode 100644
new mode 100755
index 4b660046cad6a896853a61ca20667c15978be884..dd5b31142fe8f7b6a2e7c276ae5b98f35e22c4fb
--- a/webkit/tools/test_shell/webwidget_host_gtk.cc
+++ b/webkit/tools/test_shell/webwidget_host_gtk.cc
@@ -9,9 +9,9 @@
#include "base/basictypes.h"
#include "base/logging.h"
-#include "skia/ext/bitmap_platform_device_linux.h"
-#include "skia/ext/platform_canvas_linux.h"
-#include "skia/ext/platform_device_linux.h"
+#include "skia/ext/bitmap_platform_device.h"
+#include "skia/ext/platform_canvas.h"
+#include "skia/ext/platform_device.h"
#include "webkit/api/public/gtk/WebInputEventFactory.h"
#include "webkit/api/public/x11/WebScreenInfoFactory.h"
#include "webkit/api/public/WebInputEvent.h"
@@ -357,9 +357,9 @@ void WebWidgetHost::Paint() {
gdk_window_begin_paint_rect(window, &grect);
// BitBlit to the gdk window.
- skia::PlatformDeviceLinux &platdev = canvas_->getTopPlatformDevice();
- skia::BitmapPlatformDeviceLinux* const bitdev =
- static_cast<skia::BitmapPlatformDeviceLinux* >(&platdev);
+ skia::PlatformDevice& platdev = canvas_->getTopPlatformDevice();
+ skia::BitmapPlatformDevice* const bitdev =
+ static_cast<skia::BitmapPlatformDevice*>(&platdev);
cairo_t* cairo_drawable = gdk_cairo_create(window);
cairo_set_source_surface(cairo_drawable, bitdev->surface(), 0, 0);
cairo_paint(cairo_drawable);
« no previous file with comments | « webkit/tools/test_shell/mac/webwidget_host.mm ('k') | webkit/tools/test_shell/webwidget_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698