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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: Rebase Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
index d01671376eb2b40f0b87852327598cdc732ac5d6..a4062fab5b56e5813477f2c2d4d80580f87f5ecd 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp
@@ -587,7 +587,7 @@ size_t PaintController::approximateUnsharedMemoryUsage() const {
// TODO(jbroman): If display items begin to have significant external memory
// usage that's not shared with the embedder, we should account for it here.
//
- // External objects, shared with the embedder, such as SkPicture, should be
+ // External objects, shared with the embedder, such as PaintRecord, should be
// excluded to avoid double counting. It is the embedder's responsibility to
// count such objects.
//
@@ -604,7 +604,7 @@ size_t PaintController::approximateUnsharedMemoryUsage() const {
void PaintController::appendDebugDrawingAfterCommit(
const DisplayItemClient& displayItemClient,
- sk_sp<SkPicture> picture,
+ sk_sp<PaintRecord> picture,
const LayoutSize& offsetFromLayoutObject) {
DCHECK(m_newDisplayItemList.isEmpty());
DrawingDisplayItem& displayItem =
@@ -767,11 +767,11 @@ void PaintController::showUnderInvalidationError(
LOG(ERROR) << "See http://crbug.com/619103.";
#ifndef NDEBUG
- const SkPicture* newPicture =
+ const PaintRecord* newPicture =
newItem.isDrawing()
? static_cast<const DrawingDisplayItem&>(newItem).picture()
: nullptr;
- const SkPicture* oldPicture =
+ const PaintRecord* oldPicture =
oldItem && oldItem->isDrawing()
? static_cast<const DrawingDisplayItem*>(oldItem)->picture()
: nullptr;

Powered by Google App Engine
This is Rietveld 408576698