| Index: chrome/common/transport_dib_linux.cc
|
| diff --git a/chrome/common/transport_dib_linux.cc b/chrome/common/transport_dib_linux.cc
|
| old mode 100644
|
| new mode 100755
|
| index be673d908daeb116eaad02777c27f5d6ee91b25c..1037341cb88c9436a7514d52af712c05052cfc78
|
| --- a/chrome/common/transport_dib_linux.cc
|
| +++ b/chrome/common/transport_dib_linux.cc
|
| @@ -11,6 +11,7 @@
|
| #include "base/logging.h"
|
| #include "chrome/common/transport_dib.h"
|
| #include "chrome/common/x11_util.h"
|
| +#include "skia/ext/platform_canvas.h"
|
|
|
| // The shmat system call uses this as it's invalid return address
|
| static void *const kInvalidAddress = (void*) -1;
|
| @@ -80,6 +81,11 @@ TransportDIB* TransportDIB::Map(Handle shmkey) {
|
| return dib;
|
| }
|
|
|
| +skia::PlatformCanvas* TransportDIB::GetPlatformCanvas(int w, int h) {
|
| + return new skia::PlatformCanvas(w, h, true,
|
| + reinterpret_cast<uint8_t*>(memory()));
|
| +}
|
| +
|
| void* TransportDIB::memory() const {
|
| DCHECK_NE(address_, kInvalidAddress);
|
| return address_;
|
|
|