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

Unified Diff: chrome/renderer/render_view.cc

Issue 14110: Move the "platform" wrappers in skia/ext to the skia namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years 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 | « chrome/plugin/webplugin_proxy.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 6968)
+++ chrome/renderer/render_view.cc (working copy)
@@ -511,7 +511,7 @@
emf.CreateDc(NULL, NULL);
HDC hdc = emf.hdc();
DCHECK(hdc);
- gfx::PlatformDeviceWin::InitializeDC(hdc);
+ skia::PlatformDeviceWin::InitializeDC(hdc);
gfx::Rect rect;
frame->GetPageRect(params.page_number, &rect);
@@ -535,7 +535,7 @@
// GDI drawing code fails.
// Mix of Skia and GDI based.
- gfx::PlatformCanvasWin canvas(src_size_x, src_size_y, true);
+ skia::PlatformCanvasWin canvas(src_size_x, src_size_y, true);
canvas.drawARGB(255, 255, 255, 255, SkPorterDuff::kSrc_Mode);
PlatformContextSkia context(&canvas);
if (!frame->SpoolPage(params.page_number, &context)) {
@@ -561,7 +561,7 @@
DCHECK(retval != GDI_ERROR);
#else
// 100% GDI based.
- gfx::VectorCanvas canvas(hdc, src_size_x, src_size_y);
+ skia::VectorCanvas canvas(hdc, src_size_x, src_size_y);
// Set the clipping region to be sure to not overflow.
SkRect clip_rect;
clip_rect.set(0, 0, SkIntToScalar(src_size_x), SkIntToScalar(src_size_y));
@@ -755,7 +755,7 @@
double begin = time_util::GetHighResolutionTimeNow();
#endif
- scoped_ptr<gfx::BitmapPlatformDevice> device;
+ scoped_ptr<skia::BitmapPlatformDevice> device;
if (!frame->CaptureImage(&device, true))
return false;
« no previous file with comments | « chrome/plugin/webplugin_proxy.cc ('k') | chrome/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698