Flutter Engine
fml::jni::ScopedJavaLocalFrame Class Reference

#include <scoped_java_ref.h>

Public Member Functions

 ScopedJavaLocalFrame (JNIEnv *env)
 
 ScopedJavaLocalFrame (JNIEnv *env, int capacity)
 
 ~ScopedJavaLocalFrame ()
 

Detailed Description

Definition at line 20 of file scoped_java_ref.h.

Constructor & Destructor Documentation

◆ ScopedJavaLocalFrame() [1/2]

fml::jni::ScopedJavaLocalFrame::ScopedJavaLocalFrame ( JNIEnv *  env)
explicit

Definition at line 15 of file scoped_java_ref.cc.

References FML_DCHECK.

15  : env_(env) {
16  int failed = env_->PushLocalFrame(kDefaultLocalFrameCapacity);
17  FML_DCHECK(!failed);
18 }
static const int kDefaultLocalFrameCapacity
#define FML_DCHECK(condition)
Definition: logging.h:86

◆ ScopedJavaLocalFrame() [2/2]

fml::jni::ScopedJavaLocalFrame::ScopedJavaLocalFrame ( JNIEnv *  env,
int  capacity 
)

Definition at line 20 of file scoped_java_ref.cc.

References FML_DCHECK.

21  : env_(env) {
22  int failed = env_->PushLocalFrame(capacity);
23  FML_DCHECK(!failed);
24 }
#define FML_DCHECK(condition)
Definition: logging.h:86

◆ ~ScopedJavaLocalFrame()

fml::jni::ScopedJavaLocalFrame::~ScopedJavaLocalFrame ( )

Definition at line 26 of file scoped_java_ref.cc.

26  {
27  env_->PopLocalFrame(NULL);
28 }

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