OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CC_RESOURCES_RESOURCE_H_ | 5 #ifndef CC_RESOURCES_RESOURCE_H_ |
6 #define CC_RESOURCES_RESOURCE_H_ | 6 #define CC_RESOURCES_RESOURCE_H_ |
7 | 7 |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "cc/base/cc_export.h" | 10 #include "cc/cc_export.h" |
11 #include "cc/resources/resource_provider.h" | 11 #include "cc/resources/resource_provider.h" |
12 #include "cc/resources/resource_util.h" | 12 #include "cc/resources/resource_util.h" |
13 #include "ui/gfx/geometry/size.h" | 13 #include "ui/gfx/geometry/size.h" |
14 | 14 |
15 namespace cc { | 15 namespace cc { |
16 | 16 |
17 class CC_EXPORT Resource { | 17 class CC_EXPORT Resource { |
18 public: | 18 public: |
19 Resource() : id_(0), format_(RGBA_8888) {} | 19 Resource() : id_(0), format_(RGBA_8888) {} |
20 Resource(unsigned id, | 20 Resource(unsigned id, |
(...skipping 22 matching lines...) Expand all Loading... |
43 gfx::Size size_; | 43 gfx::Size size_; |
44 ResourceFormat format_; | 44 ResourceFormat format_; |
45 gfx::ColorSpace color_space_; | 45 gfx::ColorSpace color_space_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(Resource); | 47 DISALLOW_COPY_AND_ASSIGN(Resource); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace cc | 50 } // namespace cc |
51 | 51 |
52 #endif // CC_RESOURCES_RESOURCE_H_ | 52 #endif // CC_RESOURCES_RESOURCE_H_ |
OLD | NEW |