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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host.h

Issue 108040: Send array of paint rects and bitmaps as opposed to a Union (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 void OnMsgInputEventAck(const IPC::Message& message); 320 void OnMsgInputEventAck(const IPC::Message& message);
321 void OnMsgFocus(); 321 void OnMsgFocus();
322 void OnMsgBlur(); 322 void OnMsgBlur();
323 void OnMsgSetCursor(const WebCursor& cursor); 323 void OnMsgSetCursor(const WebCursor& cursor);
324 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid 324 // Using int instead of ViewHostMsg_ImeControl for control's type to avoid
325 // having to bring in render_messages.h in a header file. 325 // having to bring in render_messages.h in a header file.
326 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect); 326 void OnMsgImeUpdateStatus(int control, const gfx::Rect& caret_rect);
327 void OnMsgShowPopup(const IPC::Message& message); 327 void OnMsgShowPopup(const IPC::Message& message);
328 328
329 // Paints the given bitmap to the current backing store at the given location. 329 // Paints the given bitmap to the current backing store at the given location.
330 void PaintBackingStoreRect(TransportDIB* dib, 330 void PaintBackingStoreRects(TransportDIB* bitmap,
331 const gfx::Rect& bitmap_rect, 331 const gfx::Rect& bitmap_rect,
332 const gfx::Size& view_size); 332 const std::vector<gfx::Rect>& paint_rects,
333 const gfx::Size& view_size);
333 334
334 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The 335 // Scrolls the given |clip_rect| in the backing by the given dx/dy amount. The
335 // |dib| and its corresponding location |bitmap_rect| in the backing store 336 // |dib| and its corresponding location |bitmap_rect| in the backing store
336 // is the newly painted pixels by the renderer. 337 // is the newly painted pixels by the renderer.
337 void ScrollBackingStoreRect(TransportDIB* dib, 338 void ScrollBackingStoreRect(TransportDIB* dib,
338 const gfx::Rect& bitmap_rect, 339 const gfx::Rect& bitmap_rect,
339 int dx, int dy, 340 int dx, int dy,
340 const gfx::Rect& clip_rect, 341 const gfx::Rect& clip_rect,
341 const gfx::Size& view_size); 342 const gfx::Size& view_size);
342 343
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
424 425
425 // Set when we cancel updating the text direction. 426 // Set when we cancel updating the text direction.
426 // This flag also ignores succeeding update requests until we call 427 // This flag also ignores succeeding update requests until we call
427 // NotifyTextDirection(). 428 // NotifyTextDirection().
428 bool text_direction_canceled_; 429 bool text_direction_canceled_;
429 430
430 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost); 431 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHost);
431 }; 432 };
432 433
433 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_ 434 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698