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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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/core/inspector/InspectorLayerTreeAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
index 6b79c135c24d8ead98c794ac86f4b864a7a553fc..7cb99b7e9cde4c153cc3e6cd11a5392cffbeb614 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorLayerTreeAgent.cpp
@@ -378,8 +378,8 @@ Response InspectorLayerTreeAgent::makeSnapshot(const String& layer_id,
GraphicsContext context(layer->GetPaintController());
context.BeginRecording(interest_rect);
layer->GetPaintController().GetPaintArtifact().Replay(interest_rect, context);
- RefPtr<PictureSnapshot> snapshot =
- AdoptRef(new PictureSnapshot(ToSkPicture(context.EndRecording())));
+ RefPtr<PictureSnapshot> snapshot = AdoptRef(
+ new PictureSnapshot(ToSkPicture(context.EndRecording(), interest_rect)));
*snapshot_id = String::Number(++last_snapshot_id_);
bool new_entry = snapshot_by_id_.insert(*snapshot_id, snapshot).is_new_entry;
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698