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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.h

Issue 1394263004: android webview: allow cc to fail hardware draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: damage before hardware to avoid invalidate-draw loop Created 5 years, 2 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool registered_; 105 bool registered_;
106 106
107 // Not owned. 107 // Not owned.
108 SynchronousCompositorOutputSurfaceClient* sync_client_; 108 SynchronousCompositorOutputSurfaceClient* sync_client_;
109 109
110 gfx::Transform cached_hw_transform_; 110 gfx::Transform cached_hw_transform_;
111 gfx::Rect cached_hw_viewport_; 111 gfx::Rect cached_hw_viewport_;
112 gfx::Rect cached_hw_clip_; 112 gfx::Rect cached_hw_clip_;
113 gfx::Rect cached_hw_viewport_rect_for_tile_priority_; 113 gfx::Rect cached_hw_viewport_rect_for_tile_priority_;
114 gfx::Transform cached_hw_transform_for_tile_priority_; 114 gfx::Transform cached_hw_transform_for_tile_priority_;
115 bool next_hardware_draw_needs_damage_;
115 116
116 // Only valid (non-NULL) during a DemandDrawSw() call. 117 // Only valid (non-NULL) during a DemandDrawSw() call.
117 SkCanvas* current_sw_canvas_; 118 SkCanvas* current_sw_canvas_;
118 119
119 cc::ManagedMemoryPolicy memory_policy_; 120 cc::ManagedMemoryPolicy memory_policy_;
120 121
121 scoped_ptr<cc::CompositorFrame> frame_holder_; 122 scoped_ptr<cc::CompositorFrame> frame_holder_;
122 123
123 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 124 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
124 125
125 base::ThreadChecker thread_checker_; 126 base::ThreadChecker thread_checker_;
126 127
127 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface); 128 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorOutputSurface);
128 }; 129 };
129 130
130 } // namespace content 131 } // namespace content
131 132
132 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_ 133 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « cc/trees/thread_proxy.cc ('k') | content/renderer/android/synchronous_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698