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

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

Issue 2095013003: Changes in DisplayItemClient for spv2 paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 5 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 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 { 341 {
342 // Since WebViewImpl may hang on to us for a while, make sure we 342 // Since WebViewImpl may hang on to us for a while, make sure we
343 // release resources as soon as possible. 343 // release resources as soon as possible.
344 clearGraphicsLayerLinkHighlightPointer(); 344 clearGraphicsLayerLinkHighlightPointer();
345 releaseResources(); 345 releaseResources();
346 } 346 }
347 347
348 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient { 348 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient {
349 String debugName() const final { return "LinkHighlight"; } 349 String debugName() const final { return "LinkHighlight"; }
350 LayoutRect visualRect() const final { return LayoutRect(); } 350 LayoutRect visualRect() const final { return LayoutRect(); }
351 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
352 }; 351 };
353 352
354 void LinkHighlightImpl::updateGeometry() 353 void LinkHighlightImpl::updateGeometry()
355 { 354 {
356 // To avoid unnecessary updates (e.g. other entities have requested animatio ns from our WebViewImpl), 355 // To avoid unnecessary updates (e.g. other entities have requested animatio ns from our WebViewImpl),
357 // only proceed if we actually requested an update. 356 // only proceed if we actually requested an update.
358 if (!m_geometryNeedsUpdate) 357 if (!m_geometryNeedsUpdate)
359 return; 358 return;
360 359
361 m_geometryNeedsUpdate = false; 360 m_geometryNeedsUpdate = false;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 { 393 {
395 return clipLayer(); 394 return clipLayer();
396 } 395 }
397 396
398 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const 397 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const
399 { 398 {
400 return m_compositorPlayer.get(); 399 return m_compositorPlayer.get();
401 } 400 }
402 401
403 } // namespace blink 402 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/testing/TestPaintArtifact.cpp ('k') | third_party/WebKit/Source/web/PageOverlay.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698