Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / cc / test / pixel_test_output_surface.cc
index 8306cc8..c773a52 100644 (file)
@@ -14,20 +14,14 @@ PixelTestOutputSurface::PixelTestOutputSurface(
     : OutputSurface(context_provider), external_stencil_test_(false) {}
 
 PixelTestOutputSurface::PixelTestOutputSurface(
-    scoped_ptr<cc::SoftwareOutputDevice> software_device)
+    scoped_ptr<SoftwareOutputDevice> software_device)
     : OutputSurface(software_device.Pass()), external_stencil_test_(false) {}
 
-void PixelTestOutputSurface::Reshape(gfx::Size size, float scale_factor) {
+void PixelTestOutputSurface::Reshape(const gfx::Size& size,
+                                     float scale_factor) {
   gfx::Size expanded_size(size.width() + surface_expansion_size_.width(),
                           size.height() + surface_expansion_size_.height());
   OutputSurface::Reshape(expanded_size, scale_factor);
-
-  gfx::Rect offset_viewport = gfx::Rect(size) + viewport_offset_;
-  gfx::Rect offset_clip = device_clip_.IsEmpty()
-                              ? offset_viewport
-                              : device_clip_ + viewport_offset_;
-  SetExternalDrawConstraints(
-      gfx::Transform(), offset_viewport, offset_clip, true);
 }
 
 bool PixelTestOutputSurface::HasExternalStencilTest() const {