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

Side by Side Diff: third_party/WebKit/Source/web/PageOverlay.h

Issue 2095013003: Changes in DisplayItemClient for spv2 paint invalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changes to DisplayItemClient Created 4 years, 5 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) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 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 * 1. Redistributions of source code must retain the above copyright 8 * 1. 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 * 10 *
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 LayoutRect visualRect() const override; 71 LayoutRect visualRect() const override;
72 72
73 // GraphicsLayerClient implementation 73 // GraphicsLayerClient implementation
74 bool needsRepaint(const GraphicsLayer&) const { return true; } 74 bool needsRepaint(const GraphicsLayer&) const { return true; }
75 IntRect computeInterestRect(const GraphicsLayer*, const IntRect&) const over ride; 75 IntRect computeInterestRect(const GraphicsLayer*, const IntRect&) const over ride;
76 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect& interestRect) const override; 76 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect& interestRect) const override;
77 String debugName(const GraphicsLayer*) const override; 77 String debugName(const GraphicsLayer*) const override;
78 78
79 private: 79 private:
80 PageOverlay(WebViewImpl*, PageOverlay::Delegate*); 80 PageOverlay(WebViewImpl*, PageOverlay::Delegate*);
81 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION
chrishtr 2016/06/27 21:09:09 I don't understand yet how the uncacheable impleme
Xianzhu 2016/06/27 21:34:54 Previously we used the uncacheable implementation
82 81
83 WebViewImpl* m_viewImpl; 82 WebViewImpl* m_viewImpl;
84 Persistent<PageOverlay::Delegate> m_delegate; 83 Persistent<PageOverlay::Delegate> m_delegate;
85 std::unique_ptr<GraphicsLayer> m_layer; 84 std::unique_ptr<GraphicsLayer> m_layer;
86 }; 85 };
87 86
88 } // namespace blink 87 } // namespace blink
89 88
90 #endif // PageOverlay_h 89 #endif // PageOverlay_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698