Chromium Code Reviews| Index: content/renderer/pepper/pepper_graphics_2d_host_unittest.cc |
| diff --git a/content/renderer/pepper/pepper_graphics_2d_host_unittest.cc b/content/renderer/pepper/pepper_graphics_2d_host_unittest.cc |
| index a97c268043b087797395f177262bef0f1c680bbc..327645fc8f8c4f28bfccacdcd52e98e25aa60022 100644 |
| --- a/content/renderer/pepper/pepper_graphics_2d_host_unittest.cc |
| +++ b/content/renderer/pepper/pepper_graphics_2d_host_unittest.cc |
| @@ -15,13 +15,10 @@ |
| #include "ppapi/shared_impl/proxy_lock.h" |
| #include "ppapi/shared_impl/test_globals.h" |
| #include "testing/gtest/include/gtest/gtest.h" |
| -#include "third_party/WebKit/public/platform/WebCanvas.h" |
| #include "third_party/skia/include/core/SkCanvas.h" |
| #include "ui/gfx/geometry/point.h" |
| #include "ui/gfx/geometry/rect.h" |
| -using blink::WebCanvas; |
| - |
| namespace content { |
| class PepperGraphics2DHostTest : public testing::Test { |
| @@ -71,14 +68,6 @@ class PepperGraphics2DHostTest : public testing::Test { |
| host_->SendOffscreenFlushAck(); |
| } |
| - void PaintToWebCanvas(SkBitmap* bitmap) { |
|
enne (OOO)
2017/03/14 17:50:10
I went to change this to SkiaPaintCanvas, but it a
ncarter (slow)
2017/03/14 18:00:33
Even better.
|
| - std::unique_ptr<WebCanvas> canvas(new WebCanvas(*bitmap)); |
| - gfx::Rect plugin_rect(PP_ToGfxRect(renderer_view_data_.rect)); |
| - host_->Paint(canvas.get(), |
| - plugin_rect, |
| - gfx::Rect(0, 0, plugin_rect.width(), plugin_rect.height())); |
| - } |
| - |
| void ResetPageBitmap(SkBitmap* bitmap) { |
| PP_Rect plugin_rect = renderer_view_data_.rect; |
| int width = plugin_rect.point.x + plugin_rect.size.width; |