aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/android/apps/visualbenchsdl/src/main/java/com/skia/VisualBenchActivity.java
blob: 894a9b33916f5d1cb5f44217085b1fe5e6904901 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/*
 * Copyright 2015 Google Inc.
 *
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file.
 */

package com.skia;

import org.libsdl.app.SDLActivity;

import android.content.Intent;

public class VisualBenchActivity extends SDLActivity {
  protected String[] getArguments() {
    String flags = this.getIntent().getStringExtra("cmdLineFlags");
    if (flags != null && !flags.isEmpty()) {
	return flags.split("\\s+");
    }
    return new String[0];
  }
}