skia2/include/views/SkOSWindow_Android.h
commit-bot@chromium.org a3b84d41ef Support MSAA4 and (non-ES) OpenGL in Android SampleApp
Add a menu item to set the OpenGL context type that SampleApp uses on
Android. The submenu of the new item will present options to create
OpenGL ES or OpenGL, aliased or multisampled.

R=djsollen@google.com, bsalomon@google.com

Author: kkinnunen@nvidia.com

Review URL: https://codereview.chromium.org/60273006

git-svn-id: http://skia.googlecode.com/svn/trunk@12610 2bbb7eff-a529-9590-31e7-b0007b416f81
2013-12-10 20:37:41 +00:00

49 lines
941 B
C++

/*
* Copyright 2011 Skia
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef SkOSWindow_Android_DEFINED
#define SkOSWindow_Android_DEFINED
#include "SkWindow.h"
class SkIRect;
class SkOSWindow : public SkWindow {
public:
SkOSWindow(void*) {}
~SkOSWindow() {}
enum SkBackEndTypes {
kNone_BackEndType,
kNativeGL_BackEndType,
};
struct AttachmentInfo {
int fSampleCount;
int fStencilBits;
};
bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo* info);
void detach() {}
void present() {}
virtual void onPDFSaved(const char title[], const char desc[],
const char path[]);
protected:
// overrides from SkWindow
virtual void onHandleInval(const SkIRect&);
virtual void onSetTitle(const char title[]);
private:
typedef SkWindow INHERITED;
};
#endif