Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
ScopedSkStreamRestorer Class Reference

Public Member Functions

 ScopedSkStreamRestorer (SkStream *stream)
 
 ~ScopedSkStreamRestorer ()
 

Detailed Description

Definition at line 30 of file SkJpegSourceMgr.cpp.

Constructor & Destructor Documentation

◆ ScopedSkStreamRestorer()

ScopedSkStreamRestorer::ScopedSkStreamRestorer ( SkStream stream)
inline

Definition at line 32 of file SkJpegSourceMgr.cpp.

32 : fStream(stream), fPosition(stream->getPosition()) {
33 if (!fStream->rewind()) {
34 SkCodecPrintf("Failed to rewind decoder stream.\n");
35 }
36 }
#define SkCodecPrintf(...)
Definition: SkCodecPriv.h:23
virtual bool rewind()
Definition: SkStream.h:100

◆ ~ScopedSkStreamRestorer()

ScopedSkStreamRestorer::~ScopedSkStreamRestorer ( )
inline

Definition at line 37 of file SkJpegSourceMgr.cpp.

37 {
38 if (!fStream->seek(fPosition)) {
39 SkCodecPrintf("Failed to restore decoder stream.\n");
40 }
41 }
virtual bool seek(size_t)
Definition: SkStream.h:125

The documentation for this class was generated from the following file: