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

Side by Side Diff: tools/viewer/sk_app/android/RasterWindowContext_android.h

Issue 2041193004: Implement Raster Backend on Android Viewer App (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: line100 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
(Empty)
1
2 /*
3 * Copyright 2016 Google Inc.
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8 #ifndef RasterWindowContext_android_DEFINED
9 #define RasterWindowContext_android_DEFINED
10
11 #include <android/native_window_jni.h>
12
13 #include "../RasterWindowContext.h"
14
15 namespace sk_app {
16
17 class RasterWindowContext_android : public RasterWindowContext {
18 public:
19 RasterWindowContext_android(void* platformData, const DisplayParams& params) ;
20
21 protected:
22 void onSwapBuffers(sk_sp<SkImage>) override;
23
24 private:
25 ANativeWindow* fNativeWindow = nullptr;
26 };
27
28 } // namespace sk_app
29
30 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698