Add Commit to SkWIStream.

http://codereview.appspot.com/4809069/



git-svn-id: http://skia.googlecode.com/svn/trunk@2017 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
bungeman@google.com 2011-08-01 20:41:53 +00:00
parent 955bb0751a
commit 14fc32114b
2 changed files with 7 additions and 0 deletions

View File

@ -121,6 +121,8 @@ public:
, ULONG cb
, ULONG* pcbWritten);
virtual HRESULT STDMETHODCALLTYPE Commit(DWORD);
virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg
, DWORD grfStatFlag);
};

View File

@ -241,6 +241,11 @@ HRESULT STDMETHODCALLTYPE SkWIStream::Write(void const* pv
}
// IStream Interface
HRESULT STDMETHODCALLTYPE SkWIStream::Commit(DWORD) {
this->fSkWStream->flush();
return S_OK;
}
HRESULT STDMETHODCALLTYPE SkWIStream::Stat(STATSTG* pStatstg
, DWORD grfStatFlag)
{