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

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

Issue 2588053003: Make OffscreenCanvas resizable (Closed)
Patch Set: fix Created 3 years, 12 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 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
1401 return String(); 1401 return String();
1402 } 1402 }
1403 1403
1404 void HTMLCanvasElement::createLayer() { 1404 void HTMLCanvasElement::createLayer() {
1405 DCHECK(!m_surfaceLayerBridge); 1405 DCHECK(!m_surfaceLayerBridge);
1406 m_surfaceLayerBridge = WTF::wrapUnique(new CanvasSurfaceLayerBridge(this)); 1406 m_surfaceLayerBridge = WTF::wrapUnique(new CanvasSurfaceLayerBridge(this));
1407 // Creates a placeholder layer first before Surface is created. 1407 // Creates a placeholder layer first before Surface is created.
1408 m_surfaceLayerBridge->createSolidColorLayer(); 1408 m_surfaceLayerBridge->createSolidColorLayer();
1409 } 1409 }
1410 1410
1411 void HTMLCanvasElement::OnWebLayerReplaced() { 1411 void HTMLCanvasElement::OnWebLayerReplaced(int width, int height) {
Justin Novosad 2016/12/20 22:06:08 Revert
1412 setNeedsCompositingUpdate(); 1412 setNeedsCompositingUpdate();
1413 } 1413 }
1414 1414
1415 } // namespace blink 1415 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698