Supervised user whitelists: Cleanup
[chromium-blink-merge.git] / android_webview / native / java_browser_view_renderer_helper.h
blobcf3dace36490148fabe234c008983121c3abaa87
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.
5 #ifndef ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
6 #define ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_
8 #include <jni.h>
10 #include "base/memory/scoped_ptr.h"
11 #include "skia/ext/refptr.h"
12 #include "ui/gfx/geometry/size.h"
13 #include "ui/gfx/geometry/vector2d.h"
15 class SkCanvas;
16 struct AwDrawSWFunctionTable;
18 namespace android_webview {
20 class SoftwareCanvasHolder {
21 public:
22 static scoped_ptr<SoftwareCanvasHolder> Create(
23 jobject java_canvas,
24 const gfx::Vector2d& scroll_correction,
25 const gfx::Size& auxiliary_bitmap_size);
27 virtual ~SoftwareCanvasHolder() {}
29 // The returned SkCanvas is still owned by this holder.
30 virtual SkCanvas* GetCanvas() = 0;
33 void RasterHelperSetAwDrawSWFunctionTable(AwDrawSWFunctionTable* table);
35 bool RegisterJavaBrowserViewRendererHelper(JNIEnv* env);
37 } // namespace android_webview
39 #endif // ANDROID_WEBVIEW_NATIVE_JAVA_BROWSER_VIEW_RENDERER_HELPER_H_