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

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
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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Fills in a GpuRenderingStats struct containing information about 172 // Fills in a GpuRenderingStats struct containing information about
173 // GPU rendering, e.g. count of texture uploads performed, time spent 173 // GPU rendering, e.g. count of texture uploads performed, time spent
174 // uploading. 174 // uploading.
175 // This call is relatively expensive as it blocks on the GPU process 175 // This call is relatively expensive as it blocks on the GPU process
176 bool GetGpuRenderingStats(GpuRenderingStats*) const; 176 bool GetGpuRenderingStats(GpuRenderingStats*) const;
177 177
178 void GetBrowserRenderingStats(BrowserRenderingStats* stats); 178 void GetBrowserRenderingStats(BrowserRenderingStats* stats);
179 179
180 RenderWidgetCompositor* compositor() const; 180 RenderWidgetCompositor* compositor() const;
181 181
182 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(); 182 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback);
183 183
184 // Callback for use with BeginSmoothScroll. 184 // Callback for use with BeginSmoothScroll.
185 typedef base::Callback<void()> SmoothScrollCompletionCallback; 185 typedef base::Callback<void()> SmoothScrollCompletionCallback;
186 186
187 // Directs the host to begin a smooth scroll. This scroll should have the same 187 // Directs the host to begin a smooth scroll. This scroll should have the same
188 // performance characteristics as a user-initiated scroll. Returns an ID of 188 // performance characteristics as a user-initiated scroll. Returns an ID of
189 // the scroll gesture. |mouse_event_x| and |mouse_event_y| are expected to be 189 // the scroll gesture. |mouse_event_x| and |mouse_event_y| are expected to be
190 // in local DIP coordinates. 190 // in local DIP coordinates.
191 void BeginSmoothScroll(bool scroll_down, 191 void BeginSmoothScroll(bool scroll_down,
192 const SmoothScrollCompletionCallback& callback, 192 const SmoothScrollCompletionCallback& callback,
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 uint32 next_output_surface_id_; 723 uint32 next_output_surface_id_;
724 724
725 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 725 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
726 726
727 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 727 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
728 }; 728 };
729 729
730 } // namespace content 730 } // namespace content
731 731
732 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 732 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698