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

Side by Side Diff: third_party/WebKit/Source/web/PageWidgetDelegate.cpp

Issue 2690583002: Make cc/paint have concrete types (Closed)
Patch Set: PaintRecord as typedef, fixup playback calls Created 3 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 DisplayItem::kPageWidgetDelegateClip, 89 DisplayItem::kPageWidgetDelegateClip,
90 dirtyRect); 90 dirtyRect);
91 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect)); 91 view->paint(paintContext, globalPaintFlags, CullRect(dirtyRect));
92 } else { 92 } else {
93 DrawingRecorder drawingRecorder( 93 DrawingRecorder drawingRecorder(
94 paintContext, builder, 94 paintContext, builder,
95 DisplayItem::kPageWidgetDelegateBackgroundFallback, dirtyRect); 95 DisplayItem::kPageWidgetDelegateBackgroundFallback, dirtyRect);
96 paintContext.fillRect(dirtyRect, Color::white); 96 paintContext.fillRect(dirtyRect, Color::white);
97 } 97 }
98 } 98 }
99 builder.endRecording()->playback(canvas); 99
100 canvas->drawPicture(builder.endRecording());
100 } 101 }
101 102
102 void PageWidgetDelegate::paint(Page& page, 103 void PageWidgetDelegate::paint(Page& page,
103 WebCanvas* canvas, 104 WebCanvas* canvas,
104 const WebRect& rect, 105 const WebRect& rect,
105 LocalFrame& root) { 106 LocalFrame& root) {
106 paintInternal(page, canvas, rect, root, GlobalPaintNormalPhase); 107 paintInternal(page, canvas, rect, root, GlobalPaintNormalPhase);
107 } 108 }
108 109
109 void PageWidgetDelegate::paintIgnoringCompositing(Page& page, 110 void PageWidgetDelegate::paintIgnoringCompositing(Page& page,
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 const WebTouchEvent& event, 269 const WebTouchEvent& event,
269 const std::vector<const WebInputEvent*>& coalescedEvents) { 270 const std::vector<const WebInputEvent*>& coalescedEvents) {
270 WebTouchEvent transformedEvent = 271 WebTouchEvent transformedEvent =
271 TransformWebTouchEvent(mainFrame.view(), event); 272 TransformWebTouchEvent(mainFrame.view(), event);
272 return mainFrame.eventHandler().handleTouchEvent( 273 return mainFrame.eventHandler().handleTouchEvent(
273 transformedEvent, 274 transformedEvent,
274 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents)); 275 TransformWebTouchEventVector(mainFrame.view(), coalescedEvents));
275 } 276 }
276 277
277 } // namespace blink 278 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/paint/PaintCanvas.h ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698