Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(535)

Side by Side Diff: tools/viewer/sk_app/GLWindowContext.h

Issue 2032623002: Implement OpenGL backend in Android viewer app (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comments Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2016 Google Inc. 3 * Copyright 2016 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef GLWindowContext_DEFINED 8 #ifndef GLWindowContext_DEFINED
9 #define GLWindowContext_DEFINED 9 #define GLWindowContext_DEFINED
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 virtual void onInitializeContext(void*, const DisplayParams&) = 0; 45 virtual void onInitializeContext(void*, const DisplayParams&) = 0;
46 void destroyContext(); 46 void destroyContext();
47 virtual void onDestroyContext() = 0; 47 virtual void onDestroyContext() = 0;
48 virtual void onSwapBuffers() = 0; 48 virtual void onSwapBuffers() = 0;
49 49
50 SkAutoTUnref<const GrGLInterface> fBackendContext; 50 SkAutoTUnref<const GrGLInterface> fBackendContext;
51 sk_sp<GrRenderTarget> fRenderTarget; 51 sk_sp<GrRenderTarget> fRenderTarget;
52 sk_sp<SkSurface> fSurface; 52 sk_sp<SkSurface> fSurface;
53 53
54 // parameters obtained from the native window 54 // parameters obtained from the native window
55 // Note that the platform .cpp file is responsible for
56 // initializing fSampleCount, fStencilBits, and fColorBits!
55 int fSampleCount; 57 int fSampleCount;
56 int fStencilBits; 58 int fStencilBits;
57 int fColorBits; 59 int fColorBits;
58 int fActualColorBits; 60 int fActualColorBits;
59 }; 61 };
60 62
61 } // namespace sk_app 63 } // namespace sk_app
62 64
63 #endif 65 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698