Index: chrome/common/transport_dib_linux.cc |
=================================================================== |
--- chrome/common/transport_dib_linux.cc (revision 17971) |
+++ chrome/common/transport_dib_linux.cc (working copy) |
@@ -80,6 +80,11 @@ |
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_; |