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

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

Issue 784453003: Initial scroll-blocks-on compositor integration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Eliminate scrollbars from iframe test for cross-platform output consistency 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 unified diff | Download patch | Annotate | Revision Log
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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap hicsLayerPaintForeground | GraphicsLayerPaintMask) 45 GraphicsLayerPaintAllWithOverflowClip = (GraphicsLayerPaintBackground | Grap hicsLayerPaintForeground | GraphicsLayerPaintMask)
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 }; 57 };
57 typedef unsigned LayerTreeFlags; 58 typedef unsigned LayerTreeFlags;
58 59
59 class PLATFORM_EXPORT GraphicsLayerClient { 60 class PLATFORM_EXPORT GraphicsLayerClient {
60 public: 61 public:
61 virtual ~GraphicsLayerClient() {} 62 virtual ~GraphicsLayerClient() {}
62 63
63 // Callback for when compositor animation started. 64 // Callback for when compositor animation started.
64 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { }; 65 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me, int group) { };
65 66
66 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0; 67 virtual void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsL ayerPaintingPhase, const IntRect& inClip) = 0;
67 virtual bool isTrackingPaintInvalidations() const { return false; } 68 virtual bool isTrackingPaintInvalidations() const { return false; }
68 69
69 virtual String debugName(const GraphicsLayer*) = 0; 70 virtual String debugName(const GraphicsLayer*) = 0;
70 71
71 #if ENABLE(ASSERT) 72 #if ENABLE(ASSERT)
72 // CompositedLayerMapping overrides this to verify that it is not 73 // CompositedLayerMapping overrides this to verify that it is not
73 // currently painting contents. An ASSERT fails, if it is. 74 // currently painting contents. An ASSERT fails, if it is.
74 // This is executed in GraphicsLayer construction and destruction 75 // This is executed in GraphicsLayer construction and destruction
75 // to verify that we don't create or destroy GraphicsLayers 76 // to verify that we don't create or destroy GraphicsLayers
76 // while painting. 77 // while painting.
77 virtual void verifyNotPainting() { } 78 virtual void verifyNotPainting() { }
78 #endif 79 #endif
79 }; 80 };
80 81
81 } // namespace blink 82 } // namespace blink
82 83
83 #endif // GraphicsLayerClient_h 84 #endif // GraphicsLayerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698