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

Unified Diff: content/browser/android/content_view_render_view.h

Issue 201583004: Add layerTreeBuildHelper to control layer tree in ContentViewRenderView (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/android/content_view_render_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/android/content_view_render_view.h
diff --git a/content/browser/android/content_view_render_view.h b/content/browser/android/content_view_render_view.h
index 1830008ac157cf11428a93253476b2f960ef9e7d..124383a6b5b223343627284983972ec190fe2ea8 100644
--- a/content/browser/android/content_view_render_view.h
+++ b/content/browser/android/content_view_render_view.h
@@ -26,13 +26,13 @@ class ContentViewRenderView : public CompositorClient {
// Methods called from Java via JNI -----------------------------------------
void Destroy(JNIEnv* env, jobject obj);
- void SetCurrentContentView(JNIEnv* env, jobject obj,
+ virtual void SetCurrentContentView(JNIEnv* env, jobject obj,
jlong native_content_view);
David Trainor- moved to gerrit 2014/03/18 18:33:28 Fix indenting
Yusuf 2014/03/19 17:35:09 Done.
- void SurfaceCreated(JNIEnv* env, jobject obj);
+ virtual void SurfaceCreated(JNIEnv* env, jobject obj);
void SurfaceDestroyed(JNIEnv* env, jobject obj);
void SurfaceChanged(JNIEnv* env, jobject obj,
jint format, jint width, jint height, jobject surface);
- jboolean Composite(JNIEnv* env, jobject obj);
+ virtual jboolean Composite(JNIEnv* env, jobject obj);
jboolean CompositeToBitmap(JNIEnv* env, jobject obj, jobject java_bitmap);
void SetOverlayVideoMode(JNIEnv* env, jobject obj, bool enabled);
@@ -40,26 +40,23 @@ class ContentViewRenderView : public CompositorClient {
virtual void ScheduleComposite() OVERRIDE;
virtual void OnSwapBuffersPosted() OVERRIDE;
virtual void OnSwapBuffersCompleted() OVERRIDE;
-
- private:
- virtual ~ContentViewRenderView();
+ protected:
David Trainor- moved to gerrit 2014/03/18 18:33:28 New line before protected
Yusuf 2014/03/19 17:35:09 Done.
+ scoped_ptr<content::Compositor> compositor_;
void InitCompositor();
-
+ virtual ~ContentViewRenderView();
+ private:
David Trainor- moved to gerrit 2014/03/18 18:33:28 New line before private
Yusuf 2014/03/19 17:35:09 Done.
bool buffers_swapped_during_composite_;
- base::android::ScopedJavaGlobalRef<jobject> java_obj_;
+ gfx::NativeWindow root_window_;
- scoped_ptr<content::Compositor> compositor_;
+ base::android::ScopedJavaGlobalRef<jobject> java_obj_;
- gfx::NativeWindow root_window_;
int current_surface_format_;
DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView);
};
-
-
}
#endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_
« no previous file with comments | « no previous file | content/browser/android/content_view_render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698