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

Side by Side Diff: platform_tools/android/apps/canvasproof/src/main/jni/JavaInputStream.h

Issue 1258123004: android/apps: Add CanvasProof App; (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 2015-09-04 (Friday) 13:29:02 EDT Created 5 years, 3 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 * Copyright 2015 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 #ifndef JavaInputStream_DEFINED
8 #define JavaInputStream_DEFINED
9
10 #include <jni.h>
11 #include "SkStream.h"
12
13 class JavaInputStream : public SkStream {
14 public:
15 JavaInputStream(JNIEnv*, jbyteArray javaBuffer, jobject javaIoInputStream);
16 bool isAtEnd() const override;
17 size_t read(void*, size_t) override;
18 private:
19 JNIEnv* fEnv;
20 jobject fInputStream;
21 jbyteArray fJavaBuffer;
22 jclass fInputStreamClass;
23 jmethodID fReadMethodID;
24 jint fStartIndex;
25 jint fEndIndex;
26 };
27
28 #endif // JavaInputStream_DEFINED
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698