1
0
Fork 0

drm_hwcomposer: Use pragma once instead of include guards

Some of existing include guards were copy-pasted without modification,
therefore have incorrect name. Switch to 'pragma once' in order to fix
it and avoid such copy-paste issues in the future.

Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
This commit is contained in:
Roman Stratiienko 2022-12-10 20:27:58 +02:00
parent 80566fe554
commit bde95666cf
33 changed files with 65 additions and 130 deletions

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef ANDROID_BUFFERINFOGETTER_H_
#define ANDROID_BUFFERINFOGETTER_H_
#pragma once
#include <drm/drm_fourcc.h>
#include <hardware/gralloc.h>
@ -89,4 +88,3 @@ class LegacyBufferInfoGetter : public BufferInfoGetter {
#endif
} // namespace android
#endif

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef PLATFORMIMAGINATION_H
#define PLATFORMIMAGINATION_H
#pragma once
#include "bufferinfo/BufferInfoGetter.h"
@ -32,5 +31,3 @@ class BufferInfoMapperMetadata : public BufferInfoGetter {
static BufferInfoGetter *CreateInstance();
};
} // namespace android
#endif // PLATFORMIMAGINATION_H

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef BUFFERINFOIMAGINATION_H
#define BUFFERINFOIMAGINATION_H
#pragma once
#include <hardware/gralloc.h>
@ -30,5 +29,3 @@ class BufferInfoImagination : public LegacyBufferInfoGetter {
auto GetBoInfo(buffer_handle_t handle) -> std::optional<BufferInfo> override;
};
} // namespace android
#endif // PLATFORMIMAGINATION_H

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef BUFFERINFOLIBDRM_H_
#define BUFFERINFOLIBDRM_H_
#pragma once
#include <hardware/gralloc.h>
@ -35,5 +34,3 @@ class BufferInfoLibdrm : public LegacyBufferInfoGetter {
};
} // namespace android
#endif

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef BUFFERINFOMALIHISI_H_
#define BUFFERINFOMALIHISI_H_
#pragma once
#include <hardware/gralloc.h>
@ -33,5 +32,3 @@ class BufferInfoMaliHisi : public LegacyBufferInfoGetter {
uint64_t ConvertGrallocFormatToDrmModifiers(uint64_t flags, bool is_rgb);
};
} // namespace android
#endif

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef BUFFERINFOMALIMTK_H_
#define BUFFERINFOMALIMTK_H_
#pragma once
#include <hardware/gralloc.h>
@ -30,5 +29,3 @@ class BufferInfoMaliMediatek : public LegacyBufferInfoGetter {
auto GetBoInfo(buffer_handle_t handle) -> std::optional<BufferInfo> override;
};
} // namespace android
#endif

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef BUFFERINFOMALIHISI_H_
#define BUFFERINFOMALIHISI_H_
#pragma once
#include <hardware/gralloc.h>
@ -32,5 +31,3 @@ class BufferInfoMaliMeson : public LegacyBufferInfoGetter {
uint64_t ConvertGrallocFormatToDrmModifiers(uint64_t flags);
};
} // namespace android
#endif

View file

@ -14,8 +14,7 @@
* limitations under the License.
*/
#ifndef BUFFERINFOMINIGBM_H_
#define BUFFERINFOMINIGBM_H_
#pragma once
#include <hardware/gralloc.h>
@ -31,5 +30,3 @@ class BufferInfoMinigbm : public LegacyBufferInfoGetter {
};
} // namespace android
#endif