1ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com
2ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com/*
3ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com * Copyright 2006 The Android Open Source Project
4ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com *
5ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com * Use of this source code is governed by a BSD-style license that can be
6ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com * found in the LICENSE file.
7ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com */
8ec3ed6a5ebf6f2c406d7bcf94b6bc34fcaeb976eepoger@google.com
98a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
108a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#ifndef SkDisplayRandom_DEFINED
118a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#define SkDisplayRandom_DEFINED
128a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
138a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#include "SkDisplayable.h"
148a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#include "SkMemberInfo.h"
158a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#include "SkRandom.h"
168a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
178a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#ifdef min
188a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#undef min
198a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#endif
208a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
218a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#ifdef max
228a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#undef max
238a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#endif
248a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
258a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comclass SkDisplayRandom : public SkDisplayable {
268a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    DECLARE_DISPLAY_MEMBER_INFO(Random);
278a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SkDisplayRandom();
288a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#ifdef SK_DUMP_ENABLED
2936352bf5e38f45a70ee4f4fc132a38048d38206dmtklein    void dump(SkAnimateMaker* ) override;
308a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#endif
3136352bf5e38f45a70ee4f4fc132a38048d38206dmtklein    bool getProperty(int index, SkScriptValue* value) const override;
3236352bf5e38f45a70ee4f4fc132a38048d38206dmtklein    bool setProperty(int index, SkScriptValue& ) override;
338a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.comprivate:
348a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SkScalar blend;
358a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SkScalar min;
368a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    SkScalar max;
378a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com    mutable SkRandom fRandom;
388a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com};
398a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com
408a1c16ff38322f0210116fa7293eb8817c7e477ereed@android.com#endif // SkDisplayRandom_DEFINED
41