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

Side by Side Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2727633006: DevTools: Rename InspectorInstrumentation:: namespace into probe:: (Closed)
Patch Set: Created 3 years, 9 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) 2004, 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2004, 2006, 2007 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved. 4 * Copyright (C) 2010 Torch Mobile (Beijing) Co. Ltd. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 266
267 factory->onError(this, 267 factory->onError(this,
268 "Canvas has an existing context of a different type"); 268 "Canvas has an existing context of a different type");
269 return nullptr; 269 return nullptr;
270 } 270 }
271 271
272 m_context = factory->create(this, attributes, document()); 272 m_context = factory->create(this, attributes, document());
273 if (!m_context) 273 if (!m_context)
274 return nullptr; 274 return nullptr;
275 275
276 InspectorInstrumentation::didCreateCanvasContext(&document()); 276 probe::didCreateCanvasContext(&document());
277 277
278 if (m_context->is3d()) { 278 if (m_context->is3d()) {
279 updateExternallyAllocatedMemory(); 279 updateExternallyAllocatedMemory();
280 } 280 }
281 281
282 LayoutObject* layoutObject = this->layoutObject(); 282 LayoutObject* layoutObject = this->layoutObject();
283 if (layoutObject && m_context->is2d() && 283 if (layoutObject && m_context->is2d() &&
284 !m_context->creationAttributes().alpha()) { 284 !m_context->creationAttributes().alpha()) {
285 // In the alpha false case, canvas is initially opaque even though there is 285 // In the alpha false case, canvas is initially opaque even though there is
286 // no ImageBuffer, so we need to trigger an invalidation. 286 // no ImageBuffer, so we need to trigger an invalidation.
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1456 // Creates a placeholder layer first before Surface is created. 1456 // Creates a placeholder layer first before Surface is created.
1457 m_surfaceLayerBridge->createSolidColorLayer(); 1457 m_surfaceLayerBridge->createSolidColorLayer();
1458 } 1458 }
1459 } 1459 }
1460 1460
1461 void HTMLCanvasElement::OnWebLayerReplaced() { 1461 void HTMLCanvasElement::OnWebLayerReplaced() {
1462 setNeedsCompositingUpdate(); 1462 setNeedsCompositingUpdate();
1463 } 1463 }
1464 1464
1465 } // namespace blink 1465 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698