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

Side by Side Diff: sky/engine/core/html/HTMLCanvasElement.cpp

Issue 791023006: Delete invalidateTreeIfNeeded. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Remove unneeded call Created 5 years, 11 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 } 273 }
274 274
275 setSurfaceSize(newSize); 275 setSurfaceSize(newSize);
276 276
277 if (m_context && m_context->is3d() && oldSize != size()) 277 if (m_context && m_context->is3d() && oldSize != size())
278 toWebGLRenderingContext(m_context.get())->reshape(width(), height()); 278 toWebGLRenderingContext(m_context.get())->reshape(width(), height());
279 279
280 if (RenderObject* renderer = this->renderer()) { 280 if (RenderObject* renderer = this->renderer()) {
281 if (renderer->isCanvas()) { 281 if (renderer->isCanvas()) {
282 if (hadImageBuffer) 282 if (hadImageBuffer)
283 renderer->setShouldDoFullPaintInvalidation(true); 283 renderer->scheduleVisualUpdate();
284 } 284 }
285 } 285 }
286 286
287 HashSet<RawPtr<CanvasObserver> >::iterator end = m_observers.end(); 287 HashSet<RawPtr<CanvasObserver> >::iterator end = m_observers.end();
288 for (HashSet<RawPtr<CanvasObserver> >::iterator it = m_observers.begin(); it != end; ++it) 288 for (HashSet<RawPtr<CanvasObserver> >::iterator it = m_observers.begin(); it != end; ++it)
289 (*it)->canvasResized(this); 289 (*it)->canvasResized(this);
290 } 290 }
291 291
292 bool HTMLCanvasElement::paintsIntoCanvasBuffer() const 292 bool HTMLCanvasElement::paintsIntoCanvasBuffer() const
293 { 293 {
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 } 660 }
661 return m_imageBuffer->copyImage(DontCopyBackingStore, Unscaled); 661 return m_imageBuffer->copyImage(DontCopyBackingStore, Unscaled);
662 } 662 }
663 663
664 FloatSize HTMLCanvasElement::sourceSize() const 664 FloatSize HTMLCanvasElement::sourceSize() const
665 { 665 {
666 return FloatSize(width(), height()); 666 return FloatSize(width(), height());
667 } 667 }
668 668
669 } 669 }
OLDNEW
« no previous file with comments | « sky/engine/core/frame/FrameView.cpp ('k') | sky/engine/core/rendering/ImageQualityController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698