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

Side by Side Diff: android_webview/browser/browser_view_renderer.h

Issue 15795002: Cache auxiliary bitmap across draw frames (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: bo & kaan comments Created 7 years, 7 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
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
7 7
8 #include "base/android/scoped_java_ref.h" 8 #include "base/android/scoped_java_ref.h"
9 #include "ui/gfx/point.h" 9 #include "ui/gfx/point.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 virtual ~Client() {} 46 virtual ~Client() {}
47 }; 47 };
48 48
49 // Delegate to perform rendering actions involving Java objects. 49 // Delegate to perform rendering actions involving Java objects.
50 class JavaHelper { 50 class JavaHelper {
51 public: 51 public:
52 // Creates a RGBA_8888 Java Bitmap object of the requested size. 52 // Creates a RGBA_8888 Java Bitmap object of the requested size.
53 virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap( 53 virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap(
54 JNIEnv* env, 54 JNIEnv* env,
55 int width, 55 int width,
56 int height) = 0; 56 int height,
57 bool cache_result) = 0;
57 58
58 // Draws the provided Java Bitmap into the provided Java Canvas. 59 // Draws the provided Java Bitmap into the provided Java Canvas.
59 virtual void DrawBitmapIntoCanvas( 60 virtual void DrawBitmapIntoCanvas(
60 JNIEnv* env, 61 JNIEnv* env,
61 const base::android::JavaRef<jobject>& jbitmap, 62 const base::android::JavaRef<jobject>& jbitmap,
62 const base::android::JavaRef<jobject>& jcanvas) = 0; 63 const base::android::JavaRef<jobject>& jcanvas) = 0;
63 64
64 // Creates a Java Picture object that records drawing the provided Bitmap. 65 // Creates a Java Picture object that records drawing the provided Bitmap.
65 virtual base::android::ScopedJavaLocalRef<jobject> RecordBitmapIntoPicture( 66 virtual base::android::ScopedJavaLocalRef<jobject> RecordBitmapIntoPicture(
66 JNIEnv* env, 67 JNIEnv* env,
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 virtual bool IsAttachedToWindow() = 0; 99 virtual bool IsAttachedToWindow() = 0;
99 virtual bool IsViewVisible() = 0; 100 virtual bool IsViewVisible() = 0;
100 virtual gfx::Rect GetScreenRect() = 0; 101 virtual gfx::Rect GetScreenRect() = 0;
101 102
102 virtual ~BrowserViewRenderer() {} 103 virtual ~BrowserViewRenderer() {}
103 }; 104 };
104 105
105 } // namespace android_webview 106 } // namespace android_webview
106 107
107 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_ 108 #endif // ANDROID_WEBVIEW_BROWSER_BROWSER_VIEW_RENDERER_H_
OLDNEW
« no previous file with comments | « no previous file | android_webview/browser/browser_view_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698