| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |