Flutter Engine
The Flutter Engine
Classes | Public Member Functions | Public Attributes | List of all members
skjpeg_error_mgr Struct Reference

#include <SkJpegPriv.h>

Inheritance diagram for skjpeg_error_mgr:

Classes

class  AutoPushJmpBuf
 

Public Member Functions

 skjpeg_error_mgr ()
 
void push (jmp_buf *j)
 
void pop (jmp_buf *j)
 

Public Attributes

jmp_buf * fStack [4] = {}
 

Detailed Description

Definition at line 28 of file SkJpegPriv.h.

Constructor & Destructor Documentation

◆ skjpeg_error_mgr()

skjpeg_error_mgr::skjpeg_error_mgr ( )
inline

Definition at line 43 of file SkJpegPriv.h.

43: jpeg_error_mgr({}) {}

Member Function Documentation

◆ pop()

void skjpeg_error_mgr::pop ( jmp_buf *  j)
inline

Definition at line 53 of file SkJpegPriv.h.

53 {
54 SkASSERT(fStack[0] == j); // if we assert here, the pushes and pops were unbalanced
55 fStack[0] = fStack[1];
56 fStack[1] = fStack[2];
57 fStack[2] = fStack[3];
58 fStack[3] = nullptr;
59 }
#define SkASSERT(cond)
Definition: SkAssert.h:116
jmp_buf * fStack[4]
Definition: SkJpegPriv.h:61

◆ push()

void skjpeg_error_mgr::push ( jmp_buf *  j)
inline

Definition at line 45 of file SkJpegPriv.h.

45 {
46 SkASSERT(fStack[3] == nullptr); // if we assert here, the stack has overflowed
47 fStack[3] = fStack[2];
48 fStack[2] = fStack[1];
49 fStack[1] = fStack[0];
50 fStack[0] = j;
51 }

Member Data Documentation

◆ fStack

jmp_buf* skjpeg_error_mgr::fStack[4] = {}

Definition at line 61 of file SkJpegPriv.h.


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