Home | History | Annotate | Download | only in gltrace
      1 /*
      2  * Copyright (C) 2011 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.ide.eclipse.gltrace;
     18 
     19 public class TraceOptions {
     20     /** Device on which the application should be run. */
     21     public final String device;
     22 
     23     /** Application to trace. */
     24     public final String appToTrace;
     25 
     26     /** Activity to trace. */
     27     public final String activityToTrace;
     28 
     29     public final boolean isActivityNameFullyQualified;
     30 
     31     /** Path where the trace file should be saved. */
     32     public final String traceDestination;
     33 
     34     /** Flag indicating whether Framebuffer should be captured on eglSwap() */
     35     public final boolean collectFbOnEglSwap;
     36 
     37     /** Flag indicating whether Framebuffer should be captured on glDraw*() */
     38     public final boolean collectFbOnGlDraw;
     39 
     40     /** Flag indicating whether texture data should be captured on glTexImage*() */
     41     public final boolean collectTextureData;
     42 
     43     public TraceOptions(String device, String appPackage, String activity,
     44             boolean isActivityNameFullyQualified, String destinationPath,
     45             boolean collectFbOnEglSwap, boolean collectFbOnGlDraw, boolean collectTextureData) {
     46         this.device = device;
     47         this.appToTrace = appPackage;
     48         this.activityToTrace = activity;
     49         this.isActivityNameFullyQualified = isActivityNameFullyQualified;
     50         this.traceDestination = destinationPath;
     51         this.collectFbOnEglSwap = collectFbOnEglSwap;
     52         this.collectFbOnGlDraw = collectFbOnGlDraw;
     53         this.collectTextureData = collectTextureData;
     54     }
     55 }
     56