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

Side by Side Diff: cc/output/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
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | cc/scheduler/scheduler.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_OUTPUT_OUTPUT_SURFACE_H_ 5 #ifndef CC_OUTPUT_OUTPUT_SURFACE_H_
6 #define CC_OUTPUT_OUTPUT_SURFACE_H_ 6 #define CC_OUTPUT_OUTPUT_SURFACE_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 OutputSurface(const scoped_refptr<ContextProvider>& context_provider, 62 OutputSurface(const scoped_refptr<ContextProvider>& context_provider,
63 scoped_ptr<SoftwareOutputDevice> software_device); 63 scoped_ptr<SoftwareOutputDevice> software_device);
64 64
65 ~OutputSurface() override; 65 ~OutputSurface() override;
66 66
67 struct Capabilities { 67 struct Capabilities {
68 Capabilities() 68 Capabilities()
69 : delegated_rendering(false), 69 : delegated_rendering(false),
70 max_frames_pending(0), 70 max_frames_pending(0),
71 draw_and_swap_full_viewport_every_frame(false),
72 adjust_deadline_for_parent(true), 71 adjust_deadline_for_parent(true),
73 uses_default_gl_framebuffer(true), 72 uses_default_gl_framebuffer(true),
74 flipped_output_surface(false), 73 flipped_output_surface(false),
75 can_force_reclaim_resources(false), 74 can_force_reclaim_resources(false),
76 delegated_sync_points_required(true) {} 75 delegated_sync_points_required(true) {}
77 bool delegated_rendering; 76 bool delegated_rendering;
78 int max_frames_pending; 77 int max_frames_pending;
79 bool draw_and_swap_full_viewport_every_frame;
80 // This doesn't handle the <webview> case, but once BeginFrame is 78 // This doesn't handle the <webview> case, but once BeginFrame is
81 // supported natively, we shouldn't need adjust_deadline_for_parent. 79 // supported natively, we shouldn't need adjust_deadline_for_parent.
82 bool adjust_deadline_for_parent; 80 bool adjust_deadline_for_parent;
83 // Whether this output surface renders to the default OpenGL zero 81 // Whether this output surface renders to the default OpenGL zero
84 // framebuffer or to an offscreen framebuffer. 82 // framebuffer or to an offscreen framebuffer.
85 bool uses_default_gl_framebuffer; 83 bool uses_default_gl_framebuffer;
86 // Whether this OutputSurface is flipped or not. 84 // Whether this OutputSurface is flipped or not.
87 bool flipped_output_surface; 85 bool flipped_output_surface;
88 // Whether ForceReclaimResources can be called to reclaim all resources 86 // Whether ForceReclaimResources can be called to reclaim all resources
89 // from the OutputSurface. 87 // from the OutputSurface.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 bool external_stencil_test_enabled_; 207 bool external_stencil_test_enabled_;
210 208
211 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_; 209 base::WeakPtrFactory<OutputSurface> weak_ptr_factory_;
212 210
213 DISALLOW_COPY_AND_ASSIGN(OutputSurface); 211 DISALLOW_COPY_AND_ASSIGN(OutputSurface);
214 }; 212 };
215 213
216 } // namespace cc 214 } // namespace cc
217 215
218 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_ 216 #endif // CC_OUTPUT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « android_webview/browser/parent_output_surface.cc ('k') | cc/scheduler/scheduler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698