am 1f758231: Merge changes I7f696e42,I51c6df3c into jb-mr2-dev

* commit '1f758231c26261bd6ef3ec869ce230c06ed5b596':
  Make GraphicBuffer a RefBase
  Fix RefBase debugging. O_CREAT must specify the mode.
This commit is contained in:
Mathias Agopian 2013-03-07 17:30:57 +00:00 committed by Android Git Automerger
commit 483fbb3bef
2 changed files with 4 additions and 5 deletions

View File

@ -24,6 +24,7 @@
#include <ui/PixelFormat.h>
#include <ui/Rect.h>
#include <utils/Flattenable.h>
#include <utils/RefBase.h>
struct ANativeWindowBuffer;
@ -37,10 +38,8 @@ class GraphicBufferMapper;
// ===========================================================================
class GraphicBuffer
: public ANativeObjectBase<
ANativeWindowBuffer,
GraphicBuffer,
LightRefBase<GraphicBuffer> >, public Flattenable
: public ANativeObjectBase< ANativeWindowBuffer, GraphicBuffer, RefBase >,
public Flattenable
{
public:

View File

@ -199,7 +199,7 @@ public:
{
char name[100];
snprintf(name, 100, "/data/%p.stack", this);
int rc = open(name, O_RDWR | O_CREAT | O_APPEND);
int rc = open(name, O_RDWR | O_CREAT | O_APPEND, 644);
if (rc >= 0) {
write(rc, text.string(), text.length());
close(rc);