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:
parent
955bb0751a
commit
14fc32114b
@ -121,6 +121,8 @@ public:
|
||||
, ULONG cb
|
||||
, ULONG* pcbWritten);
|
||||
|
||||
virtual HRESULT STDMETHODCALLTYPE Commit(DWORD);
|
||||
|
||||
virtual HRESULT STDMETHODCALLTYPE Stat(STATSTG* pStatstg
|
||||
, DWORD grfStatFlag);
|
||||
};
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user