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