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

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

Issue 185633002: Adding monotonic only API to Blink's animation delegate interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding BLINK_PLATFORM_EXPORT back in. Created 6 years, 9 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
« no previous file with comments | « Source/web/PinchViewports.h ('k') | Source/web/tests/GraphicsLayerTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 scrollLayer); 194 scrollLayer);
195 } 195 }
196 196
197 void PinchViewports::clearViewportLayersForTreeView(WebLayerTreeView* layerTreeV iew) const 197 void PinchViewports::clearViewportLayersForTreeView(WebLayerTreeView* layerTreeV iew) const
198 { 198 {
199 ASSERT(layerTreeView); 199 ASSERT(layerTreeView);
200 200
201 layerTreeView->clearViewportLayers(); 201 layerTreeView->clearViewportLayers();
202 } 202 }
203 203
204 void PinchViewports::notifyAnimationStarted(const GraphicsLayer*, double wallClo ckTime, double monotonicTime) 204 void PinchViewports::notifyAnimationStarted(const GraphicsLayer*, double monoton icTime)
205 { 205 {
206 } 206 }
207 207
208 void PinchViewports::paintContents(const GraphicsLayer*, WebCore::GraphicsContex t&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip) 208 void PinchViewports::paintContents(const GraphicsLayer*, WebCore::GraphicsContex t&, WebCore::GraphicsLayerPaintingPhase, const WebCore::IntRect& inClip)
209 { 209 {
210 } 210 }
211 211
212 String PinchViewports::debugName(const GraphicsLayer* graphicsLayer) 212 String PinchViewports::debugName(const GraphicsLayer* graphicsLayer)
213 { 213 {
214 String name; 214 String name;
215 if (graphicsLayer == m_innerViewportContainerLayer.get()) { 215 if (graphicsLayer == m_innerViewportContainerLayer.get()) {
216 name = "Inner Viewport Container Layer"; 216 name = "Inner Viewport Container Layer";
217 } else if (graphicsLayer == m_pageScaleLayer.get()) { 217 } else if (graphicsLayer == m_pageScaleLayer.get()) {
218 name = "Page Scale Layer"; 218 name = "Page Scale Layer";
219 } else if (graphicsLayer == m_innerViewportScrollLayer.get()) { 219 } else if (graphicsLayer == m_innerViewportScrollLayer.get()) {
220 name = "Inner Viewport Scroll Layer"; 220 name = "Inner Viewport Scroll Layer";
221 } else if (graphicsLayer == m_overlayScrollbarHorizontal.get()) { 221 } else if (graphicsLayer == m_overlayScrollbarHorizontal.get()) {
222 name = "Overlay Scrollbar Horizontal Layer"; 222 name = "Overlay Scrollbar Horizontal Layer";
223 } else if (graphicsLayer == m_overlayScrollbarVertical.get()) { 223 } else if (graphicsLayer == m_overlayScrollbarVertical.get()) {
224 name = "Overlay Scrollbar Vertical Layer"; 224 name = "Overlay Scrollbar Vertical Layer";
225 } else { 225 } else {
226 ASSERT_NOT_REACHED(); 226 ASSERT_NOT_REACHED();
227 } 227 }
228 228
229 return name; 229 return name;
230 } 230 }
231 231
232 } // namespace blink 232 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/PinchViewports.h ('k') | Source/web/tests/GraphicsLayerTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698