| Index: cc/base/scale_translate2d.cc
|
| diff --git a/cc/base/scale_translate2d.cc b/cc/base/scale_translate2d.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a6d2a1a49143f7629ce24a5c2c039ca93ea137fa
|
| --- /dev/null
|
| +++ b/cc/base/scale_translate2d.cc
|
| @@ -0,0 +1,16 @@
|
| +// Copyright 2016 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.
|
| +
|
| +#include "cc/base/scale_translate2d.h"
|
| +
|
| +#include "third_party/skia/include/core/SkCanvas.h"
|
| +
|
| +namespace cc {
|
| +
|
| +void ScaleTranslate2d::ApplyToCanvas(SkCanvas* canvas) const {
|
| + canvas->translate(translation_.x(), translation_.y());
|
| + canvas->scale(scale_, scale_);
|
| +}
|
| +
|
| +} // namespace cc
|
|
|