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

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

Issue 2219523004: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 { 346 {
347 // Since WebViewImpl may hang on to us for a while, make sure we 347 // Since WebViewImpl may hang on to us for a while, make sure we
348 // release resources as soon as possible. 348 // release resources as soon as possible.
349 clearGraphicsLayerLinkHighlightPointer(); 349 clearGraphicsLayerLinkHighlightPointer();
350 releaseResources(); 350 releaseResources();
351 } 351 }
352 352
353 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient { 353 class LinkHighlightDisplayItemClientForTracking : public DisplayItemClient {
354 String debugName() const final { return "LinkHighlight"; } 354 String debugName() const final { return "LinkHighlight"; }
355 LayoutRect visualRect() const final { return LayoutRect(); } 355 LayoutRect visualRect() const final { return LayoutRect(); }
356 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
356 }; 357 };
357 358
358 void LinkHighlightImpl::updateGeometry() 359 void LinkHighlightImpl::updateGeometry()
359 { 360 {
360 // To avoid unnecessary updates (e.g. other entities have requested animatio ns from our WebViewImpl), 361 // To avoid unnecessary updates (e.g. other entities have requested animatio ns from our WebViewImpl),
361 // only proceed if we actually requested an update. 362 // only proceed if we actually requested an update.
362 if (!m_geometryNeedsUpdate) 363 if (!m_geometryNeedsUpdate)
363 return; 364 return;
364 365
365 m_geometryNeedsUpdate = false; 366 m_geometryNeedsUpdate = false;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 { 399 {
399 return clipLayer(); 400 return clipLayer();
400 } 401 }
401 402
402 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const 403 CompositorAnimationPlayer* LinkHighlightImpl::compositorPlayer() const
403 { 404 {
404 return m_compositorPlayer.get(); 405 return m_compositorPlayer.get();
405 } 406 }
406 407
407 } // namespace blink 408 } // 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