summaryrefslogtreecommitdiff
path: root/chromium/components/exo/wayland/clients/blur.h
blob: 7bb86b7cf82da745434572569fd6b01562db077f (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
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright 2017 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 COMPONENTS_EXO_WAYLAND_CLIENTS_BLUR_H_
#define COMPONENTS_EXO_WAYLAND_CLIENTS_BLUR_H_

#include "components/exo/wayland/clients/client_base.h"

class SkImage;

namespace exo {
namespace wayland {
namespace clients {

// Client that can be used to measure the cost of blur filter effects
// across different devices.
class Blur : public wayland::clients::ClientBase {
 public:
  Blur();
  ~Blur() override;

  void Run(double sigma_x,
           double sigma_y,
           double max_sigma,
           bool offscreen,
           int frames);

 private:
  sk_sp<SkImage> grid_image_;

  DISALLOW_COPY_AND_ASSIGN(Blur);
};

}  // namespace clients
}  // namespace wayland
}  // namespace exo

#endif  // COMPONENTS_EXO_WAYLAND_CLIENTS_BLUR_H_