projects
/
platform
/
core
/
uifw
/
dali-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[Tizen] Implement partial update
[platform/core/uifw/dali-core.git]
/
dali
/
integration-api
/
lockless-buffer.cpp
diff --git
a/dali/integration-api/lockless-buffer.cpp
b/dali/integration-api/lockless-buffer.cpp
index
b704dbc
..
dd2217d
100644
(file)
--- a/
dali/integration-api/lockless-buffer.cpp
+++ b/
dali/integration-api/lockless-buffer.cpp
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (c) 201
4
Samsung Electronics Co., Ltd.
+ * Copyright (c) 201
8
Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@
-27,13
+27,13
@@
namespace Dali
namespace Integration
{
namespace Integration
{
-LocklessBuffer::LocklessBuffer(
size
_t size )
+LocklessBuffer::LocklessBuffer(
uint32
_t size )
: mState( R0W1 ),
mSize( size )
{
// allocate memory to speed up operation
: mState( R0W1 ),
mSize( size )
{
// allocate memory to speed up operation
- mBuffer[0] = new u
nsigned char
[size];
- mBuffer[1] = new u
nsigned char
[size];
+ mBuffer[0] = new u
int8_t
[size];
+ mBuffer[1] = new u
int8_t
[size];
memset (mBuffer[0], 0, size );
memset (mBuffer[1], 0, size );
memset (mBuffer[0], 0, size );
memset (mBuffer[1], 0, size );
@@
-45,7
+45,7
@@
LocklessBuffer::~LocklessBuffer()
delete[] mBuffer[1];
}
delete[] mBuffer[1];
}
-void LocklessBuffer::Write( const u
nsigned char *src, size
_t size )
+void LocklessBuffer::Write( const u
int8_t *src, uint32
_t size )
{
DALI_ASSERT_ALWAYS( size <= mSize );
{
DALI_ASSERT_ALWAYS( size <= mSize );
@@
-66,7
+66,7
@@
void LocklessBuffer::Write( const unsigned char *src, size_t size )
(void)checkState; // Avoid unused variable warning
}
(void)checkState; // Avoid unused variable warning
}
-const u
nsigned char
* LocklessBuffer::Read()
+const u
int8_t
* LocklessBuffer::Read()
{
// current state (only to avoid multiple memory reads with volatile variable)
BufferState currentState( mState );
{
// current state (only to avoid multiple memory reads with volatile variable)
BufferState currentState( mState );
@@
-90,7
+90,7
@@
const unsigned char* LocklessBuffer::Read()
return mBuffer[!currentWriteBuf];
}
return mBuffer[!currentWriteBuf];
}
-u
nsigned in
t LocklessBuffer::GetSize() const
+u
int32_
t LocklessBuffer::GetSize() const
{
return static_cast<unsigned int>(mSize);
}
{
return static_cast<unsigned int>(mSize);
}