cc: Added inline to Tile::IsReadyToDraw
[chromium-blink-merge.git] / cc / test / pixel_test_output_surface.cc
blob9a4d66a38c0a3f4bb145ba51b856326f483291b3
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 void PixelTestOutputSurface::Reshape(gfx::Size size, float scale_factor) {
13 gfx::Size expanded_size(size.width() + surface_expansion_size_.width(),
14 size.height() + surface_expansion_size_.height());
15 OutputSurface::Reshape(expanded_size, scale_factor);
17 gfx::Rect offset_viewport = gfx::Rect(size) + viewport_offset_;
18 SetExternalDrawConstraints(gfx::Transform(), offset_viewport);
21 } // namespace cc