blob: af3cefe473976faed39968907e8e3d2b21c3b49f [file] [log] [blame]
// Copyright 2015 The Cobalt Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#ifndef COBALT_RENDERER_TEST_SCENES_SCALING_TEXT_SCENE_H_
#define COBALT_RENDERER_TEST_SCENES_SCALING_TEXT_SCENE_H_
#include "base/time/time.h"
#include "cobalt/math/size_f.h"
#include "cobalt/render_tree/resource_provider.h"
#include "cobalt/renderer/test/scenes/scene_helpers.h"
namespace cobalt {
namespace renderer {
namespace test {
namespace scenes {
// This scene creates a large set of lines of text each with a different
// scale being applied to it, and the scale of all text is animated.
// This is very useful for investigating issues with text scaling, which
// internally can be quite non-trivial.
scoped_refptr<render_tree::Node> CreateScalingTextScene(
render_tree::ResourceProvider* resource_provider,
const math::SizeF& output_dimensions, base::TimeDelta start_time);
} // namespace scenes
} // namespace test
} // namespace renderer
} // namespace cobalt
#endif // COBALT_RENDERER_TEST_SCENES_SCALING_TEXT_SCENE_H_