1/*
2 * Copyright 2011 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#include "SampleApp.h"
9#import "SkUIView.h"
10
11class SkiOSDeviceManager;
12class SkOSWindow;
13class SkEvent;
14struct FPSState;
15
16@interface SkSampleUIView : SkUIView  {
17    BOOL fRedrawRequestPending;
18
19    struct {
20        EAGLContext*    fContext;
21        GLuint          fRenderbuffer;
22        GLuint          fStencilbuffer;
23        GLuint          fFramebuffer;
24        GLint           fWidth;
25        GLint           fHeight;
26    } fGL;
27
28    NSString* fTitle;
29    CALayer* fRasterLayer;
30    CAEAGLLayer* fGLLayer;
31
32    FPSState* fFPSState;
33    SkiOSDeviceManager* fDevManager;
34}
35
36@property (nonatomic, copy) NSString* fTitle;
37@property (nonatomic, retain) CALayer* fRasterLayer;
38@property (nonatomic, retain) CAEAGLLayer* fGLLayer;
39
40- (id)initWithDefaults;
41- (void)drawInRaster;
42- (void)forceRedraw;
43
44- (void)setSkTitle:(const char*)title;
45- (void)postInvalWithRect:(const SkIRect*)rectOrNil;
46- (void)getAttachmentInfo:(SkOSWindow::AttachmentInfo*)info;
47
48@end
49