: 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 {