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

Unified Diff: sky/engine/core/html/HTMLCanvasElement.cpp

Issue 865153004: Remove dead code related to compositing from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/frame/SettingsDelegate.h ('k') | sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/html/HTMLCanvasElement.cpp
diff --git a/sky/engine/core/html/HTMLCanvasElement.cpp b/sky/engine/core/html/HTMLCanvasElement.cpp
index 843a94f5aeda6227d2413f9a807ee6bf4624d9b1..e464aac49b564f1ef0c51d2d64dad3096733cda9 100644
--- a/sky/engine/core/html/HTMLCanvasElement.cpp
+++ b/sky/engine/core/html/HTMLCanvasElement.cpp
@@ -290,17 +290,9 @@ void HTMLCanvasElement::reset()
bool HTMLCanvasElement::paintsIntoCanvasBuffer() const
{
ASSERT(m_context);
-
- if (!m_context->isAccelerated())
- return true;
-
- if (renderBox() && renderBox()->hasAcceleratedCompositing())
- return false;
-
return true;
}
-
void HTMLCanvasElement::paint(GraphicsContext* context, const LayoutRect& r)
{
if (m_context) {
« no previous file with comments | « sky/engine/core/frame/SettingsDelegate.h ('k') | sky/engine/core/html/canvas/WebGLRenderingContextBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698