Chromium Code Reviews| Index: cc/resources/resource_format.h |
| diff --git a/cc/output/software_frame_data.cc b/cc/resources/resource_format.h |
| similarity index 50% |
| copy from cc/output/software_frame_data.cc |
| copy to cc/resources/resource_format.h |
| index 0b430325092f02a162776910aced9beca59c1a38..89d0110beb24ba7aeb3d942bf8842462bae9a77e 100644 |
| --- a/cc/output/software_frame_data.cc |
| +++ b/cc/resources/resource_format.h |
| @@ -2,14 +2,18 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#include "cc/output/software_frame_data.h" |
| +#ifndef CC_RESOURCES_RESOURCE_FORMAT_H_ |
| +#define CC_RESOURCES_RESOURCE_FORMAT_H_ |
| namespace cc { |
| -SoftwareFrameData::SoftwareFrameData() |
| - : id(0), |
| - handle(base::SharedMemory::NULLHandle()) {} |
| - |
| -SoftwareFrameData::~SoftwareFrameData() {} |
| +enum ResourceFormat { |
| + RGBA_8888, |
| + RGBA_4444, |
| + BGRA_8888, |
| + LUMINANCE_8, |
|
piman
2013/09/14 00:14:17
nit: can you add RESOURCE_FORMAT_MAX = LUMINANCE_8
kaanb
2013/09/14 00:36:25
Done.
|
| +}; |
| } // namespace cc |
| + |
| +#endif // CC_RESOURCES_RESOURCE_FORMAT_H_ |