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

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

Issue 11732002: [Android WebView] Update SW rendering to use SkPicture and fix scrolling cases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to use SkPicture and simplify. 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_AW_CONTENTS_H_ 5 #ifndef ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 6 #define ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 #include <string> 9 #include <string>
10 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_; 139 scoped_ptr<AwWebContentsDelegate> web_contents_delegate_;
140 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_; 140 scoped_ptr<AwRenderViewHostExt> render_view_host_ext_;
141 scoped_ptr<FindHelper> find_helper_; 141 scoped_ptr<FindHelper> find_helper_;
142 scoped_ptr<content::WebContents> pending_contents_; 142 scoped_ptr<content::WebContents> pending_contents_;
143 143
144 // Compositor-specific state. 144 // Compositor-specific state.
145 scoped_ptr<content::Compositor> compositor_; 145 scoped_ptr<content::Compositor> compositor_;
146 scoped_refptr<cc::Layer> scissor_clip_layer_; 146 scoped_refptr<cc::Layer> scissor_clip_layer_;
147 scoped_refptr<cc::Layer> transform_layer_; 147 scoped_refptr<cc::Layer> transform_layer_;
148 scoped_refptr<cc::Layer> view_clip_layer_; 148 scoped_refptr<cc::Layer> view_clip_layer_;
149 gfx::Point hw_rendering_scroll_;
149 gfx::Size view_size_; 150 gfx::Size view_size_;
150 bool view_visible_; 151 bool view_visible_;
151 bool compositor_visible_; 152 bool compositor_visible_;
152 bool is_composite_pending_; 153 bool is_composite_pending_;
153 int last_scroll_x_, last_scroll_y_;
154 154
155 // Used only for detecting Android View System context changes. 155 // Used only for detecting Android View System context changes.
156 // Not to be used between draw calls. 156 // Not to be used between draw calls.
157 EGLContext last_frame_context_; 157 EGLContext last_frame_context_;
158 158
159 DISALLOW_COPY_AND_ASSIGN(AwContents); 159 DISALLOW_COPY_AND_ASSIGN(AwContents);
160 }; 160 };
161 161
162 bool RegisterAwContents(JNIEnv* env); 162 bool RegisterAwContents(JNIEnv* env);
163 163
164 } // namespace android_webview 164 } // namespace android_webview
165 165
166 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_ 166 #endif // ANDROID_WEBVIEW_NATIVE_AW_CONTENTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698