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

Unified Diff: webkit/plugins/npapi/webview_plugin.cc

Issue 6783023: Eliminate skia::PlatformCanvas - Step 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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
Index: webkit/plugins/npapi/webview_plugin.cc
===================================================================
--- webkit/plugins/npapi/webview_plugin.cc (revision 80714)
+++ webkit/plugins/npapi/webview_plugin.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -128,17 +128,15 @@
CGContextTranslateCTM(context, rect_.x(), rect_.y());
CGContextSaveGState(context);
#elif WEBKIT_USING_SKIA
- skia::PlatformCanvas* platform_canvas = canvas;
- platform_canvas->translate(SkIntToScalar(rect_.x()),
- SkIntToScalar(rect_.y()));
- platform_canvas->save();
+ canvas->translate(SkIntToScalar(rect_.x()), SkIntToScalar(rect_.y()));
+ canvas->save();
#endif
web_view_->layout();
web_view_->paint(canvas, paintRect);
#if WEBKIT_USING_SKIA
- platform_canvas->restore();
+ canvas->restore();
#elif WEBKIT_USING_CG
CGContextRestoreGState(context);
#endif

Powered by Google App Engine
This is Rietveld 408576698