1cb93a386Sopenharmony_ci/*
2cb93a386Sopenharmony_ci * Copyright 2016 Google Inc.
3cb93a386Sopenharmony_ci *
4cb93a386Sopenharmony_ci * Use of this source code is governed by a BSD-style license that can be
5cb93a386Sopenharmony_ci * found in the LICENSE file.
6cb93a386Sopenharmony_ci */
7cb93a386Sopenharmony_ci#ifndef SkBitmapKey_DEFINED
8cb93a386Sopenharmony_ci#define SkBitmapKey_DEFINED
9cb93a386Sopenharmony_ci
10cb93a386Sopenharmony_ci#include "include/core/SkRect.h"
11cb93a386Sopenharmony_ci
12cb93a386Sopenharmony_cistruct SkBitmapKey {
13cb93a386Sopenharmony_ci    SkIRect fSubset;
14cb93a386Sopenharmony_ci    uint32_t fID;
15cb93a386Sopenharmony_ci    bool operator==(const SkBitmapKey& rhs) const {
16cb93a386Sopenharmony_ci        return fID == rhs.fID && fSubset == rhs.fSubset;
17cb93a386Sopenharmony_ci    }
18cb93a386Sopenharmony_ci    bool operator!=(const SkBitmapKey& rhs) const { return !(*this == rhs); }
19cb93a386Sopenharmony_ci};
20cb93a386Sopenharmony_ci
21cb93a386Sopenharmony_ci
22cb93a386Sopenharmony_ci#endif  // SkBitmapKey_DEFINED
23