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

Side by Side Diff: content/renderer/render_widget.h

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/render_widget.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_RENDERER_RENDER_WIDGET_H_ 5 #ifndef CONTENT_RENDERER_RENDER_WIDGET_H_
6 #define CONTENT_RENDERER_RENDER_WIDGET_H_ 6 #define CONTENT_RENDERER_RENDER_WIDGET_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 10
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // Fills in a GpuRenderingStats struct containing information about 167 // Fills in a GpuRenderingStats struct containing information about
168 // GPU rendering, e.g. count of texture uploads performed, time spent 168 // GPU rendering, e.g. count of texture uploads performed, time spent
169 // uploading. 169 // uploading.
170 // This call is relatively expensive as it blocks on the GPU process 170 // This call is relatively expensive as it blocks on the GPU process
171 bool GetGpuRenderingStats(GpuRenderingStats*) const; 171 bool GetGpuRenderingStats(GpuRenderingStats*) const;
172 172
173 void GetBrowserRenderingStats(BrowserRenderingStats* stats); 173 void GetBrowserRenderingStats(BrowserRenderingStats* stats);
174 174
175 RenderWidgetCompositor* compositor() const; 175 RenderWidgetCompositor* compositor() const;
176 176
177 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(); 177 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback);
178 178
179 // Callback for use with BeginSmoothScroll. 179 // Callback for use with BeginSmoothScroll.
180 typedef base::Callback<void()> SmoothScrollCompletionCallback; 180 typedef base::Callback<void()> SmoothScrollCompletionCallback;
181 181
182 // Directs the host to begin a smooth scroll. This scroll should have the same 182 // Directs the host to begin a smooth scroll. This scroll should have the same
183 // performance characteristics as a user-initiated scroll. Returns an ID of 183 // performance characteristics as a user-initiated scroll. Returns an ID of
184 // the scroll gesture. |mouse_event_x| and |mouse_event_y| are expected to be 184 // the scroll gesture. |mouse_event_x| and |mouse_event_y| are expected to be
185 // in local DIP coordinates. 185 // in local DIP coordinates.
186 void BeginSmoothScroll(bool scroll_down, 186 void BeginSmoothScroll(bool scroll_down,
187 const SmoothScrollCompletionCallback& callback, 187 const SmoothScrollCompletionCallback& callback,
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 uint32 next_output_surface_id_; 718 uint32 next_output_surface_id_;
719 719
720 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 720 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
721 721
722 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 722 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
723 }; 723 };
724 724
725 } // namespace content 725 } // namespace content
726 726
727 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 727 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | content/renderer/render_widget.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698