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

Side by Side Diff: android_webview/native/render_helper.h

Issue 12041009: [Android WebView] Migrate the rendering code to a separate set of classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef ANDROID_WEBVIEW_NATIVE_PICTURE_HELPER_H_
6 #define ANDROID_WEBVIEW_NATIVE_PICTURE_HELPER_H_
7
8 #include "android_webview/browser/view_renderer_impl.h"
9 #include "base/android/scoped_java_ref.h"
10
11 namespace android_webview {
12
13 // Native side of java-class of same name.
14 // Provides utility methods for rendering involving with Java objects.
15 class RenderHelper : public ViewRendererImpl::JavaHelper {
16 public:
17 RenderHelper();
18 virtual ~RenderHelper();
19
20 // ViewRendererImpl::JavaHelper implementation.
21 virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap(
22 JNIEnv* env, int width, int height) OVERRIDE;
benm (inactive) 2013/01/21 20:34:49 nit: indent
Leandro Graciá Gil 2013/01/22 08:18:46 Done.
23 virtual void DrawBitmapIntoCanvas(JNIEnv* env,
24 jobject jbitmap,
25 jobject jcanvas) OVERRIDE;
mkosiba (inactive) 2013/01/22 02:13:34 again.. ScopedJava..Ref nit.
Leandro Graciá Gil 2013/01/22 08:18:46 Done.
26 virtual base::android::ScopedJavaLocalRef<jobject> RecordRasterizedBitmap(
27 JNIEnv* env, jobject jbitmap) OVERRIDE;
28 };
29
30 bool RegisterRenderHelper(JNIEnv* env);
31
32 } // namespace android_webview
33
34 #endif // ANDROID_WEBVIEW_NATIVE_PICTURE_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698