Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions WebDriverAgentLib/Utilities/FBConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,8 @@ extern NSString *const FBSnapshotMaxDepthKey;
! Setting this to a value less than 100, especially together with orientation fixing enabled
! may lead to WDA process termination because of an excessive CPU usage.
*/
+ (CGFloat)mjpegScalingFactor;
+ (void)setMjpegScalingFactor:(CGFloat)scalingFactor;
+ (double)mjpegScalingFactor;
+ (void)setMjpegScalingFactor:(double)scalingFactor;

/**
YES if verbose logging is enabled. NO otherwise.
Expand Down
6 changes: 3 additions & 3 deletions WebDriverAgentLib/Utilities/FBConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
static BOOL FBShouldUseSingletonTestManager = YES;
static BOOL FBShouldRespectSystemAlerts = NO;

static CGFloat FBMjpegScalingFactor = 100.0;
static double FBMjpegScalingFactor = 100.0;
static BOOL FBMjpegShouldFixOrientation = NO;
static NSUInteger FBMjpegServerScreenshotQuality = 25;
static NSUInteger FBMjpegServerFramerate = 10;
Expand Down Expand Up @@ -178,12 +178,12 @@ + (UInt64)httpRequestBodySizeLimit
return DefaultHttpRequestBodySizeLimit;
}

+ (CGFloat)mjpegScalingFactor
+ (double)mjpegScalingFactor
{
return FBMjpegScalingFactor;
}

+ (void)setMjpegScalingFactor:(CGFloat)scalingFactor {
+ (void)setMjpegScalingFactor:(double)scalingFactor {
FBMjpegScalingFactor = scalingFactor;
}

Expand Down