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

Side by Side Diff: content/browser/android/content_view_render_view.h

Issue 239963002: Android: Move scheduling logic to CompositorImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | content/browser/android/content_view_render_view.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) 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 CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ 5 #ifndef CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_
6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ 6 #define CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_
7 7
8 #include "base/android/jni_weak_ref.h" 8 #include "base/android/jni_weak_ref.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 25 matching lines...) Expand all
36 void SetLayerTreeBuildHelper( 36 void SetLayerTreeBuildHelper(
37 JNIEnv* env, jobject obj, jlong native_build_helper); 37 JNIEnv* env, jobject obj, jlong native_build_helper);
38 void SurfaceCreated(JNIEnv* env, jobject obj); 38 void SurfaceCreated(JNIEnv* env, jobject obj);
39 void SurfaceDestroyed(JNIEnv* env, jobject obj); 39 void SurfaceDestroyed(JNIEnv* env, jobject obj);
40 void SurfaceChanged(JNIEnv* env, jobject obj, 40 void SurfaceChanged(JNIEnv* env, jobject obj,
41 jint format, jint width, jint height, jobject surface); 41 jint format, jint width, jint height, jobject surface);
42 jboolean Composite(JNIEnv* env, jobject obj); 42 jboolean Composite(JNIEnv* env, jobject obj);
43 jboolean CompositeToBitmap(JNIEnv* env, jobject obj, jobject java_bitmap); 43 jboolean CompositeToBitmap(JNIEnv* env, jobject obj, jobject java_bitmap);
44 void SetOverlayVideoMode(JNIEnv* env, jobject obj, bool enabled); 44 void SetOverlayVideoMode(JNIEnv* env, jobject obj, bool enabled);
45 45
46 // CompositorClient --------------------------------------------------------- 46 // CompositorClient implementation
47 virtual void ScheduleComposite() OVERRIDE; 47 virtual void Layout() OVERRIDE;
48 virtual void OnSwapBuffersPosted() OVERRIDE; 48 virtual void OnSwapBuffersCompleted(int pending_swap_buffers) OVERRIDE;
49 virtual void OnSwapBuffersCompleted() OVERRIDE;
50 49
51 private: 50 private:
52 virtual ~ContentViewRenderView(); 51 virtual ~ContentViewRenderView();
53 52
54 void InitCompositor(); 53 void InitCompositor();
55 54
56 bool buffers_swapped_during_composite_;
57
58 base::android::ScopedJavaGlobalRef<jobject> java_obj_; 55 base::android::ScopedJavaGlobalRef<jobject> java_obj_;
59 scoped_ptr<LayerTreeBuildHelper> layer_tree_build_helper_; 56 scoped_ptr<LayerTreeBuildHelper> layer_tree_build_helper_;
60 57
61 scoped_ptr<content::Compositor> compositor_; 58 scoped_ptr<content::Compositor> compositor_;
62 59
63 gfx::NativeWindow root_window_; 60 gfx::NativeWindow root_window_;
64 int current_surface_format_; 61 int current_surface_format_;
65 62
66 DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView); 63 DISALLOW_COPY_AND_ASSIGN(ContentViewRenderView);
67 }; 64 };
68 65
69 66
70 67
71 } 68 }
72 69
73 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_ 70 #endif // CONTENT_BROWSER_ANDROID_CONTENT_VIEW_RENDER_VIEW_H_
OLDNEW
« 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