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

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

Issue 12463007: Disable partial swaps for webview guest renderer until we can figure out how to do that properly. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 9 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
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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 enum ShowIme { 200 enum ShowIme {
201 DO_NOT_SHOW_IME, 201 DO_NOT_SHOW_IME,
202 SHOW_IME_IF_NEEDED 202 SHOW_IME_IF_NEEDED
203 }; 203 };
204 204
205 virtual void InstrumentWillBeginFrame() {} 205 virtual void InstrumentWillBeginFrame() {}
206 virtual void InstrumentDidBeginFrame() {} 206 virtual void InstrumentDidBeginFrame() {}
207 virtual void InstrumentDidCancelFrame() {} 207 virtual void InstrumentDidCancelFrame() {}
208 virtual void InstrumentWillComposite() {} 208 virtual void InstrumentWillComposite() {}
209 209
210 virtual bool AllowPartialSwap() const;
211
210 protected: 212 protected:
211 // Friend RefCounted so that the dtor can be non-public. Using this class 213 // Friend RefCounted so that the dtor can be non-public. Using this class
212 // without ref-counting is an error. 214 // without ref-counting is an error.
213 friend class base::RefCounted<RenderWidget>; 215 friend class base::RefCounted<RenderWidget>;
214 // For unit tests. 216 // For unit tests.
215 friend class RenderWidgetTest; 217 friend class RenderWidgetTest;
216 218
217 enum ResizeAck { 219 enum ResizeAck {
218 SEND_RESIZE_ACK, 220 SEND_RESIZE_ACK,
219 NO_RESIZE_ACK, 221 NO_RESIZE_ACK,
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 663
662 // Specified whether the compositor will run in its own thread. 664 // Specified whether the compositor will run in its own thread.
663 bool is_threaded_compositing_enabled_; 665 bool is_threaded_compositing_enabled_;
664 666
665 DISALLOW_COPY_AND_ASSIGN(RenderWidget); 667 DISALLOW_COPY_AND_ASSIGN(RenderWidget);
666 }; 668 };
667 669
668 } // namespace content 670 } // namespace content
669 671
670 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_ 672 #endif // CONTENT_RENDERER_RENDER_WIDGET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698