summaryrefslogtreecommitdiffstats
path: root/cc/test/pixel_test_software_output_device.h
blob: fd8f4b0ca8a085c19cabcfd9b0360e1b177621d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2013 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.

#ifndef CC_TEST_PIXEL_TEST_SOFTWARE_OUTPUT_DEVICE_H_
#define CC_TEST_PIXEL_TEST_SOFTWARE_OUTPUT_DEVICE_H_

#include "cc/output/software_output_device.h"

namespace cc {

class PixelTestSoftwareOutputDevice : public SoftwareOutputDevice {
 public:
  virtual void Resize(const gfx::Size& pixel_size, float scale_factor) OVERRIDE;

  void set_surface_expansion_size(const gfx::Size& surface_expansion_size) {
    surface_expansion_size_ = surface_expansion_size;
  }

 private:
  gfx::Size surface_expansion_size_;
};

}  // namespace cc

#endif  // CC_TEST_PIXEL_TEST_SOFTWARE_OUTPUT_DEVICE_H_