Lots of random cleanups, mostly for native_theme_win.cc:
[chromium-blink-merge.git] / cc / test / pixel_test_output_surface.cc
blobc773a5227211a3b56ea4a0274481915219429566
1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "cc/test/pixel_test_output_surface.h"
7 #include "cc/output/output_surface_client.h"
8 #include "ui/gfx/transform.h"
10 namespace cc {
12 PixelTestOutputSurface::PixelTestOutputSurface(
13 scoped_refptr<ContextProvider> context_provider)
14 : OutputSurface(context_provider), external_stencil_test_(false) {}
16 PixelTestOutputSurface::PixelTestOutputSurface(
17 scoped_ptr<SoftwareOutputDevice> software_device)
18 : OutputSurface(software_device.Pass()), external_stencil_test_(false) {}
20 void PixelTestOutputSurface::Reshape(const gfx::Size& size,
21 float scale_factor) {
22 gfx::Size expanded_size(size.width() + surface_expansion_size_.width(),
23 size.height() + surface_expansion_size_.height());
24 OutputSurface::Reshape(expanded_size, scale_factor);
27 bool PixelTestOutputSurface::HasExternalStencilTest() const {
28 return external_stencil_test_;
31 } // namespace cc