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

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

Issue 2623043002: Fix first paint tracking for SPv2 (Closed)
Patch Set: - Created 3 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
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // (excluding the root) as a layer list, in paint (preorder) order. 65 // (excluding the root) as a layer list, in paint (preorder) order.
66 OutputAsLayerTree = 1 << 6, 66 OutputAsLayerTree = 1 << 6,
67 }; 67 };
68 typedef unsigned LayerTreeFlags; 68 typedef unsigned LayerTreeFlags;
69 69
70 class PLATFORM_EXPORT GraphicsLayerClient { 70 class PLATFORM_EXPORT GraphicsLayerClient {
71 public: 71 public:
72 virtual ~GraphicsLayerClient() {} 72 virtual ~GraphicsLayerClient() {}
73 73
74 virtual void invalidateTargetElementForTesting() {} 74 virtual void invalidateTargetElementForTesting() {}
75 virtual void notifyPaint(bool isFirstPaint,
76 bool textPainted,
77 bool imagePainted) {}
78 75
79 virtual IntRect computeInterestRect( 76 virtual IntRect computeInterestRect(
80 const GraphicsLayer*, 77 const GraphicsLayer*,
81 const IntRect& previousInterestRect) const = 0; 78 const IntRect& previousInterestRect) const = 0;
82 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); } 79 virtual LayoutSize subpixelAccumulation() const { return LayoutSize(); }
83 // Returns whether the client needs to be repainted with respect to the given 80 // Returns whether the client needs to be repainted with respect to the given
84 // graphics layer. 81 // graphics layer.
85 virtual bool needsRepaint(const GraphicsLayer&) const = 0; 82 virtual bool needsRepaint(const GraphicsLayer&) const = 0;
86 virtual void paintContents(const GraphicsLayer*, 83 virtual void paintContents(const GraphicsLayer*,
87 GraphicsContext&, 84 GraphicsContext&,
(...skipping 10 matching lines...) Expand all
98 // This is executed in GraphicsLayer construction and destruction 95 // This is executed in GraphicsLayer construction and destruction
99 // to verify that we don't create or destroy GraphicsLayers 96 // to verify that we don't create or destroy GraphicsLayers
100 // while painting. 97 // while painting.
101 virtual void verifyNotPainting() {} 98 virtual void verifyNotPainting() {}
102 #endif 99 #endif
103 }; 100 };
104 101
105 } // namespace blink 102 } // namespace blink
106 103
107 #endif // GraphicsLayerClient_h 104 #endif // GraphicsLayerClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698