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

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

Issue 1441973003: Use recomputed interest rect only if it changed enough (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix release builds Created 5 years, 1 month 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 ~PageOverlay(); 63 ~PageOverlay();
64 64
65 void update(); 65 void update();
66 66
67 GraphicsLayer* graphicsLayer() const { return m_layer.get(); } 67 GraphicsLayer* graphicsLayer() const { return m_layer.get(); }
68 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); } 68 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi s); }
69 String debugName() const { return "PageOverlay"; } 69 String debugName() const { return "PageOverlay"; }
70 70
71 // GraphicsLayerClient implementation 71 // GraphicsLayerClient implementation
72 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect* inClip) const override; 72 IntRect computeInterestRect(const GraphicsLayer*, const IntRect&) const over ride;
73 String debugName(const GraphicsLayer*) override; 73 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain tingPhase, const IntRect& interestRect) const override;
74 String debugName(const GraphicsLayer*) const override;
74 75
75 private: 76 private:
76 PageOverlay(WebViewImpl*, PageOverlay::Delegate*); 77 PageOverlay(WebViewImpl*, PageOverlay::Delegate*);
77 78
78 WebViewImpl* m_viewImpl; 79 WebViewImpl* m_viewImpl;
79 Persistent<PageOverlay::Delegate> m_delegate; 80 Persistent<PageOverlay::Delegate> m_delegate;
80 OwnPtr<GraphicsLayer> m_layer; 81 OwnPtr<GraphicsLayer> m_layer;
81 }; 82 };
82 83
83 } // namespace blink 84 } // namespace blink
84 85
85 #endif // PageOverlay_h 86 #endif // PageOverlay_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp ('k') | third_party/WebKit/Source/web/PageOverlay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698