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

Side by Side Diff: Source/platform/graphics/GraphicsLayerClient.h

Issue 1287623002: Delete blink code for scroll-blocks-on (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Merge with trunk (no changes from previous patch) Created 5 years, 4 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
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 }; 46 };
47 typedef unsigned GraphicsLayerPaintingPhase; 47 typedef unsigned GraphicsLayerPaintingPhase;
48 48
49 enum { 49 enum {
50 LayerTreeNormal = 0, 50 LayerTreeNormal = 0,
51 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer addresses. 51 LayerTreeIncludesDebugInfo = 1 << 0, // Dump extra debugging info like layer addresses.
52 LayerTreeIncludesPaintInvalidationRects = 1 << 1, 52 LayerTreeIncludesPaintInvalidationRects = 1 << 1,
53 LayerTreeIncludesPaintingPhases = 1 << 2, 53 LayerTreeIncludesPaintingPhases = 1 << 2,
54 LayerTreeIncludesRootLayer = 1 << 3, 54 LayerTreeIncludesRootLayer = 1 << 3,
55 LayerTreeIncludesClipAndScrollParents = 1 << 4, 55 LayerTreeIncludesClipAndScrollParents = 1 << 4,
56 LayerTreeIncludesScrollBlocksOn = 1 << 5, 56 LayerTreeIncludesPaintInvalidationObjects = 1 << 5,
57 LayerTreeIncludesPaintInvalidationObjects = 1 << 6, 57 LayerTreeIncludesCompositingReasons = 1 << 6,
58 LayerTreeIncludesCompositingReasons = 1 << 7,
59 }; 58 };
60 typedef unsigned LayerTreeFlags; 59 typedef unsigned LayerTreeFlags;
61 60
62 class PLATFORM_EXPORT GraphicsLayerClient { 61 class PLATFORM_EXPORT GraphicsLayerClient {
63 public: 62 public:
64 virtual ~GraphicsLayerClient() {} 63 virtual ~GraphicsLayerClient() {}
65 64
66 // Callback for when compositor animation started. 65 // Callback for when compositor animation started.
67 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { } 66 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { }
68 67
69 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0; 68 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0;
70 virtual bool isTrackingPaintInvalidations() const { return false; } 69 virtual bool isTrackingPaintInvalidations() const { return false; }
71 70
72 virtual String debugName(const GraphicsLayer*) = 0; 71 virtual String debugName(const GraphicsLayer*) = 0;
73 72
74 #if ENABLE(ASSERT) 73 #if ENABLE(ASSERT)
75 // CompositedLayerMapping overrides this to verify that it is not 74 // CompositedLayerMapping overrides this to verify that it is not
76 // currently painting contents. An ASSERT fails, if it is. 75 // currently painting contents. An ASSERT fails, if it is.
77 // This is executed in GraphicsLayer construction and destruction 76 // This is executed in GraphicsLayer construction and destruction
78 // to verify that we don't create or destroy GraphicsLayers 77 // to verify that we don't create or destroy GraphicsLayers
79 // while painting. 78 // while painting.
80 virtual void verifyNotPainting() { } 79 virtual void verifyNotPainting() { }
81 #endif 80 #endif
82 }; 81 };
83 82
84 } // namespace blink 83 } // namespace blink
85 84
86 #endif // GraphicsLayerClient_h 85 #endif // GraphicsLayerClient_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/GraphicsLayer.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698