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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.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) 2009, 2010, 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010, 2011 Apple 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 3268 matching lines...) Expand 10 before | Expand all | Expand 10 after
3279 ScrollableAreaPainter(*scrollableArea) 3279 ScrollableAreaPainter(*scrollableArea)
3280 .paintResizer(builder.context(), -scrollCornerAndResizerLocation, 3280 .paintResizer(builder.context(), -scrollCornerAndResizerLocation,
3281 cullRect); 3281 cullRect);
3282 } 3282 }
3283 // Replay the painted scrollbar content with the GraphicsLayer backing as the 3283 // Replay the painted scrollbar content with the GraphicsLayer backing as the
3284 // DisplayItemClient in order for the resulting DrawingDisplayItem to produce 3284 // DisplayItemClient in order for the resulting DrawingDisplayItem to produce
3285 // the correct visualRect (i.e., the bounds of the involved GraphicsLayer). 3285 // the correct visualRect (i.e., the bounds of the involved GraphicsLayer).
3286 DrawingRecorder drawingRecorder(context, *graphicsLayer, 3286 DrawingRecorder drawingRecorder(context, *graphicsLayer,
3287 DisplayItem::kScrollbarCompositedScrollbar, 3287 DisplayItem::kScrollbarCompositedScrollbar,
3288 layerBounds); 3288 layerBounds);
3289 builder.endRecording()->playback(context.canvas()); 3289 context.canvas()->drawPicture(builder.endRecording());
3290 } 3290 }
3291 3291
3292 bool CompositedLayerMapping::isScrollableAreaLayer( 3292 bool CompositedLayerMapping::isScrollableAreaLayer(
3293 const GraphicsLayer* graphicsLayer) const { 3293 const GraphicsLayer* graphicsLayer) const {
3294 return graphicsLayer == layerForHorizontalScrollbar() || 3294 return graphicsLayer == layerForHorizontalScrollbar() ||
3295 graphicsLayer == layerForVerticalScrollbar() || 3295 graphicsLayer == layerForVerticalScrollbar() ||
3296 graphicsLayer == layerForScrollCorner(); 3296 graphicsLayer == layerForScrollCorner();
3297 } 3297 }
3298 3298
3299 bool CompositedLayerMapping::isTrackingRasterInvalidations() const { 3299 bool CompositedLayerMapping::isTrackingRasterInvalidations() const {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
3487 } else if (graphicsLayer == m_decorationOutlineLayer.get()) { 3487 } else if (graphicsLayer == m_decorationOutlineLayer.get()) {
3488 name = "Decoration Layer"; 3488 name = "Decoration Layer";
3489 } else { 3489 } else {
3490 ASSERT_NOT_REACHED(); 3490 ASSERT_NOT_REACHED();
3491 } 3491 }
3492 3492
3493 return name; 3493 return name;
3494 } 3494 }
3495 3495
3496 } // namespace blink 3496 } // namespace blink
OLDNEW
« no previous file with comments | « printing/pdf_metafile_skia.cc ('k') | third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698