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

Side by Side Diff: android_webview/browser/hardware_renderer.h

Issue 585093003: aw: Block child compositor if frame is not consumed by parent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BROWSER_HARDWARE_RENDERER_H_ 5 #ifndef ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 6 #define ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
7 7
8 #include "android_webview/browser/parent_compositor_draw_constraints.h" 8 #include "android_webview/browser/parent_compositor_draw_constraints.h"
9 #include "android_webview/browser/shared_renderer_state.h" 9 #include "android_webview/browser/shared_renderer_state.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 virtual void DidCompleteSwapBuffers() OVERRIDE {} 55 virtual void DidCompleteSwapBuffers() OVERRIDE {}
56 56
57 // cc::LayerTreeHostSingleThreadClient overrides. 57 // cc::LayerTreeHostSingleThreadClient overrides.
58 virtual void DidPostSwapBuffers() OVERRIDE {} 58 virtual void DidPostSwapBuffers() OVERRIDE {}
59 virtual void DidAbortSwapBuffers() OVERRIDE {} 59 virtual void DidAbortSwapBuffers() OVERRIDE {}
60 60
61 // cc::DelegatedFrameResourceCollectionClient overrides. 61 // cc::DelegatedFrameResourceCollectionClient overrides.
62 virtual void UnusedResourcesAreAvailable() OVERRIDE; 62 virtual void UnusedResourcesAreAvailable() OVERRIDE;
63 63
64 private: 64 private:
65 void SetFrameData();
66
65 SharedRendererState* shared_renderer_state_; 67 SharedRendererState* shared_renderer_state_;
66 68
67 typedef void* EGLContext; 69 typedef void* EGLContext;
68 EGLContext last_egl_context_; 70 EGLContext last_egl_context_;
69 71
72 scoped_ptr<DrawGLInput> committed_input_;
73
70 // Information about last delegated frame. 74 // Information about last delegated frame.
71 gfx::Size frame_size_; 75 gfx::Size frame_size_;
72 gfx::Vector2d scroll_offset_; 76 gfx::Vector2d scroll_offset_;
73 77
74 // Information from draw. 78 // Information from draw.
75 gfx::Size viewport_; 79 gfx::Size viewport_;
76 gfx::Rect clip_; 80 gfx::Rect clip_;
77 bool stencil_enabled_; 81 bool stencil_enabled_;
78 bool viewport_clip_valid_for_dcheck_; 82 bool viewport_clip_valid_for_dcheck_;
79 83
(...skipping 10 matching lines...) Expand all
90 ParentOutputSurface* output_surface_; 94 ParentOutputSurface* output_surface_;
91 95
92 ParentCompositorDrawConstraints draw_constraints_; 96 ParentCompositorDrawConstraints draw_constraints_;
93 97
94 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer); 98 DISALLOW_COPY_AND_ASSIGN(HardwareRenderer);
95 }; 99 };
96 100
97 } // namespace android_webview 101 } // namespace android_webview
98 102
99 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_ 103 #endif // ANDROID_WEBVIEW_BROWSER_HARDWARE_RENDERER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698