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

Side by Side Diff: third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp

Issue 2809983002: Fix g_k_* symbols after blink rename. (Closed)
Patch Set: Created 3 years, 8 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 3411 matching lines...) Expand 10 before | Expand all | Expand 10 after
3422 #if DCHECK_IS_ON() 3422 #if DCHECK_IS_ON()
3423 void CompositedLayerMapping::VerifyNotPainting() { 3423 void CompositedLayerMapping::VerifyNotPainting() {
3424 DCHECK(!GetLayoutObject().GetFrame()->GetPage() || 3424 DCHECK(!GetLayoutObject().GetFrame()->GetPage() ||
3425 !GetLayoutObject().GetFrame()->GetPage()->IsPainting()); 3425 !GetLayoutObject().GetFrame()->GetPage()->IsPainting());
3426 } 3426 }
3427 #endif 3427 #endif
3428 3428
3429 // Only used for performance benchmark testing. Intended to be a 3429 // Only used for performance benchmark testing. Intended to be a
3430 // sufficiently-unique element id name to allow picking out the target element 3430 // sufficiently-unique element id name to allow picking out the target element
3431 // for invalidation. 3431 // for invalidation.
3432 static const char* g_k_test_paint_invalidation_target_name = 3432 static const char kTestPaintInvalidationTargetName[] =
3433 "blinkPaintInvalidationTarget"; 3433 "blinkPaintInvalidationTarget";
3434 3434
3435 void CompositedLayerMapping::InvalidateTargetElementForTesting() { 3435 void CompositedLayerMapping::InvalidateTargetElementForTesting() {
3436 // The below is an artificial construct formed intentionally to focus a 3436 // The below is an artificial construct formed intentionally to focus a
3437 // microbenchmark on the cost of paint with a partial invalidation. 3437 // microbenchmark on the cost of paint with a partial invalidation.
3438 Element* target_element = 3438 Element* target_element =
3439 owning_layer_.GetLayoutObject().GetDocument().GetElementById( 3439 owning_layer_.GetLayoutObject().GetDocument().GetElementById(
3440 AtomicString(g_k_test_paint_invalidation_target_name)); 3440 AtomicString(kTestPaintInvalidationTargetName));
3441 // TODO(wkorman): If we don't find the expected target element, we could 3441 // TODO(wkorman): If we don't find the expected target element, we could
3442 // consider walking to the first leaf node so that the partial-invalidation 3442 // consider walking to the first leaf node so that the partial-invalidation
3443 // benchmark mode still provides some value when running on generic pages. 3443 // benchmark mode still provides some value when running on generic pages.
3444 if (!target_element) 3444 if (!target_element)
3445 return; 3445 return;
3446 LayoutObject* target_object = target_element->GetLayoutObject(); 3446 LayoutObject* target_object = target_element->GetLayoutObject();
3447 if (!target_object) 3447 if (!target_object)
3448 return; 3448 return;
3449 target_object->EnclosingLayer()->SetNeedsRepaint(); 3449 target_object->EnclosingLayer()->SetNeedsRepaint();
3450 // TODO(wkorman): Consider revising the below to invalidate all 3450 // TODO(wkorman): Consider revising the below to invalidate all
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
3608 } else if (graphics_layer == decoration_outline_layer_.get()) { 3608 } else if (graphics_layer == decoration_outline_layer_.get()) {
3609 name = "Decoration Layer"; 3609 name = "Decoration Layer";
3610 } else { 3610 } else {
3611 NOTREACHED(); 3611 NOTREACHED();
3612 } 3612 }
3613 3613
3614 return name; 3614 return name;
3615 } 3615 }
3616 3616
3617 } // namespace blink 3617 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698