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

Side by Side Diff: Source/WebCore/rendering/RenderLayerCompositor.cpp

Issue 14067007: Remove 3D_RENDERING define from Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased, retrying the bots Created 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2009, 2010 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 #include <wtf/TemporaryChange.h> 63 #include <wtf/TemporaryChange.h>
64 64
65 #if !LOG_DISABLED 65 #if !LOG_DISABLED
66 #include <wtf/CurrentTime.h> 66 #include <wtf/CurrentTime.h>
67 #endif 67 #endif
68 68
69 #ifndef NDEBUG 69 #ifndef NDEBUG
70 #include "RenderTreeAsText.h" 70 #include "RenderTreeAsText.h"
71 #endif 71 #endif
72 72
73 #if ENABLE(3D_RENDERING)
74 // This symbol is used to determine from a script whether 3D rendering is enable d (via 'nm').
75 bool WebCoreHas3DRendering = true;
76 #endif
77
78 #define WTF_USE_COMPOSITING_FOR_SMALL_CANVASES 1 73 #define WTF_USE_COMPOSITING_FOR_SMALL_CANVASES 1
79 74
80 static const int canvasAreaThresholdRequiringCompositing = 50 * 100; 75 static const int canvasAreaThresholdRequiringCompositing = 50 * 100;
81 76
82 namespace WebCore { 77 namespace WebCore {
83 78
84 using namespace HTMLNames; 79 using namespace HTMLNames;
85 80
86 class RenderLayerCompositor::OverlapMap { 81 class RenderLayerCompositor::OverlapMap {
87 WTF_MAKE_NONCOPYABLE(OverlapMap); 82 WTF_MAKE_NONCOPYABLE(OverlapMap);
(...skipping 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after
2783 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas"); 2778 info.addMember(m_layerForOverhangAreas, "layerForOverhangAreas");
2784 info.addMember(m_contentShadowLayer, "contentShadowLayer"); 2779 info.addMember(m_contentShadowLayer, "contentShadowLayer");
2785 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea"); 2780 info.addMember(m_layerForTopOverhangArea, "layerForTopOverhangArea");
2786 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea"); 2781 info.addMember(m_layerForBottomOverhangArea, "layerForBottomOverhangArea");
2787 info.addMember(m_layerForHeader, "layerForHeader"); 2782 info.addMember(m_layerForHeader, "layerForHeader");
2788 info.addMember(m_layerForFooter, "layerForFooter"); 2783 info.addMember(m_layerForFooter, "layerForFooter");
2789 #endif 2784 #endif
2790 } 2785 }
2791 2786
2792 } // namespace WebCore 2787 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/platform/graphics/GraphicsContext.h ('k') | Source/WebCore/rendering/RenderObject.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698