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

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

Issue 14898002: Add LayerTreeHostSettings for synchronous compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 DO_NOT_SHOW_IME, 202 DO_NOT_SHOW_IME,
203 SHOW_IME_IF_NEEDED 203 SHOW_IME_IF_NEEDED
204 }; 204 };
205 205
206 virtual void InstrumentWillBeginFrame() {} 206 virtual void InstrumentWillBeginFrame() {}
207 virtual void InstrumentDidBeginFrame() {} 207 virtual void InstrumentDidBeginFrame() {}
208 virtual void InstrumentDidCancelFrame() {} 208 virtual void InstrumentDidCancelFrame() {}
209 virtual void InstrumentWillComposite() {} 209 virtual void InstrumentWillComposite() {}
210 210
211 virtual bool AllowPartialSwap() const; 211 virtual bool AllowPartialSwap() const;
212 bool EnableSynchronousCompositing() const;
212 213
213 protected: 214 protected:
214 // Friend RefCounted so that the dtor can be non-public. Using this class 215 // Friend RefCounted so that the dtor can be non-public. Using this class
215 // without ref-counting is an error. 216 // without ref-counting is an error.
216 friend class base::RefCounted<RenderWidget>; 217 friend class base::RefCounted<RenderWidget>;
217 // For unit tests. 218 // For unit tests.
218 friend class RenderWidgetTest; 219 friend class RenderWidgetTest;
219 220
220 enum ResizeAck { 221 enum ResizeAck {
221 SEND_RESIZE_ACK, 222 SEND_RESIZE_ACK,
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
691 bool is_threaded_compositing_enabled_; 692 bool is_threaded_compositing_enabled_;
692 693
693 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_; 694 base::WeakPtrFactory<RenderWidget> weak_ptr_factory_;
694 695
695 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 696 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
696 }; 697 };
697 698
698 } // namespace content 699 } // namespace content
699 700
700 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 701 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698