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

Side by Side Diff: Source/web/WebViewImpl.cpp

Issue 498193003: Add |GraphicsLayerDebugInfo::getAnnotatedInvalidationRects| (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tkent-san review Created 6 years, 3 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) 2011, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2011, 2012 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 #include "platform/PlatformKeyboardEvent.h" 102 #include "platform/PlatformKeyboardEvent.h"
103 #include "platform/PlatformMouseEvent.h" 103 #include "platform/PlatformMouseEvent.h"
104 #include "platform/PlatformWheelEvent.h" 104 #include "platform/PlatformWheelEvent.h"
105 #include "platform/PopupMenuClient.h" 105 #include "platform/PopupMenuClient.h"
106 #include "platform/RuntimeEnabledFeatures.h" 106 #include "platform/RuntimeEnabledFeatures.h"
107 #include "platform/TraceEvent.h" 107 #include "platform/TraceEvent.h"
108 #include "platform/UserGestureIndicator.h" 108 #include "platform/UserGestureIndicator.h"
109 #include "platform/exported/WebActiveGestureAnimation.h" 109 #include "platform/exported/WebActiveGestureAnimation.h"
110 #include "platform/fonts/FontCache.h" 110 #include "platform/fonts/FontCache.h"
111 #include "platform/graphics/Color.h" 111 #include "platform/graphics/Color.h"
112 #include "platform/graphics/FirstPaintInvalidationTracking.h"
112 #include "platform/graphics/Image.h" 113 #include "platform/graphics/Image.h"
113 #include "platform/graphics/ImageBuffer.h" 114 #include "platform/graphics/ImageBuffer.h"
114 #include "platform/scheduler/Scheduler.h" 115 #include "platform/scheduler/Scheduler.h"
115 #include "platform/scroll/ScrollbarTheme.h" 116 #include "platform/scroll/ScrollbarTheme.h"
116 #include "platform/weborigin/SchemeRegistry.h" 117 #include "platform/weborigin/SchemeRegistry.h"
117 #include "public/platform/Platform.h" 118 #include "public/platform/Platform.h"
118 #include "public/platform/WebDragData.h" 119 #include "public/platform/WebDragData.h"
119 #include "public/platform/WebFloatPoint.h" 120 #include "public/platform/WebFloatPoint.h"
120 #include "public/platform/WebGestureCurve.h" 121 #include "public/platform/WebGestureCurve.h"
121 #include "public/platform/WebImage.h" 122 #include "public/platform/WebImage.h"
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
854 m_showFPSCounter = show; 855 m_showFPSCounter = show;
855 } 856 }
856 857
857 void WebViewImpl::setShowPaintRects(bool show) 858 void WebViewImpl::setShowPaintRects(bool show)
858 { 859 {
859 if (m_layerTreeView) { 860 if (m_layerTreeView) {
860 TRACE_EVENT0("blink", "WebViewImpl::setShowPaintRects"); 861 TRACE_EVENT0("blink", "WebViewImpl::setShowPaintRects");
861 m_layerTreeView->setShowPaintRects(show); 862 m_layerTreeView->setShowPaintRects(show);
862 } 863 }
863 m_showPaintRects = show; 864 m_showPaintRects = show;
865 setFirstPaintInvalidationTrackingEnabledForShowPaintRects(show);
864 } 866 }
865 867
866 void WebViewImpl::setShowDebugBorders(bool show) 868 void WebViewImpl::setShowDebugBorders(bool show)
867 { 869 {
868 if (m_layerTreeView) 870 if (m_layerTreeView)
869 m_layerTreeView->setShowDebugBorders(show); 871 m_layerTreeView->setShowDebugBorders(show);
870 m_showDebugBorders = show; 872 m_showDebugBorders = show;
871 } 873 }
872 874
873 void WebViewImpl::setContinuousPaintingEnabled(bool enabled) 875 void WebViewImpl::setContinuousPaintingEnabled(bool enabled)
(...skipping 3416 matching lines...) Expand 10 before | Expand all | Expand 10 after
4290 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints(); 4292 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi nedConstraints();
4291 4293
4292 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) 4294 if (!mainFrameImpl() || !mainFrameImpl()->frameView())
4293 return false; 4295 return false;
4294 4296
4295 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width 4297 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width
4296 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1); 4298 || (constraints.minimumScale == constraints.maximumScale && constraints. minimumScale != -1);
4297 } 4299 }
4298 4300
4299 } // namespace blink 4301 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayerDebugInfo.cpp ('k') | public/platform/WebGraphicsLayerDebugInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698