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/java_browser_view_renderer_helper.h

Issue 1145273003: aw: Force auxiliary bitmap on android emulators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
6 #define ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_ 6 #define ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "skia/ext/refptr.h" 11 #include "skia/ext/refptr.h"
12 #include "ui/gfx/geometry/size.h" 12 #include "ui/gfx/geometry/size.h"
13 #include "ui/gfx/geometry/vector2d.h" 13 #include "ui/gfx/geometry/vector2d.h"
14 14
15 class SkCanvas; 15 class SkCanvas;
16 struct AwDrawSWFunctionTable; 16 struct AwDrawSWFunctionTable;
17 17
18 namespace android_webview { 18 namespace android_webview {
19 19
20 class SoftwareCanvasHolder { 20 class SoftwareCanvasHolder {
21 public: 21 public:
22 static scoped_ptr<SoftwareCanvasHolder> Create( 22 static scoped_ptr<SoftwareCanvasHolder> Create(
23 jobject java_canvas, 23 jobject java_canvas,
24 const gfx::Vector2d& scroll_correction, 24 const gfx::Vector2d& scroll_correction,
25 const gfx::Size& auxiliary_bitmap_size); 25 const gfx::Size& auxiliary_bitmap_size,
26 bool force_auxiliary_bitmap);
26 27
27 virtual ~SoftwareCanvasHolder() {} 28 virtual ~SoftwareCanvasHolder() {}
28 29
29 // The returned SkCanvas is still owned by this holder. 30 // The returned SkCanvas is still owned by this holder.
30 virtual SkCanvas* GetCanvas() = 0; 31 virtual SkCanvas* GetCanvas() = 0;
31 }; 32 };
32 33
33 void RasterHelperSetAwDrawSWFunctionTable(AwDrawSWFunctionTable* table); 34 void RasterHelperSetAwDrawSWFunctionTable(AwDrawSWFunctionTable* table);
34 35
35 bool RegisterJavaBrowserViewRendererHelper(JNIEnv* env); 36 bool RegisterJavaBrowserViewRendererHelper(JNIEnv* env);
36 37
37 } // namespace android_webview 38 } // namespace android_webview
38 39
39 #endif // ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_ 40 #endif // ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
OLDNEW
« no previous file with comments | « android_webview/native/aw_picture.cc ('k') | android_webview/native/java_browser_view_renderer_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698