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

Unified Diff: cc/resources/skpicture_content_layer_updater.h

Issue 23484005: Skip clearing the canvas before painting the contents of opaque layers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove unecessary newline Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | cc/resources/skpicture_content_layer_updater.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/skpicture_content_layer_updater.h
diff --git a/cc/resources/skpicture_content_layer_updater.h b/cc/resources/skpicture_content_layer_updater.h
index 41a9f01e14e7bbd7db30811beae38b0e4e31792d..511d8ee9bfd48b93254a9a22741a0b61859345b4 100644
--- a/cc/resources/skpicture_content_layer_updater.h
+++ b/cc/resources/skpicture_content_layer_updater.h
@@ -20,9 +20,6 @@ class LayerPainter;
// FrameBufferSkPictureContentLayerUpdater are two examples of such
// implementations.
class SkPictureContentLayerUpdater : public ContentLayerUpdater {
- public:
- virtual void SetOpaque(bool opaque) OVERRIDE;
-
protected:
SkPictureContentLayerUpdater(
scoped_ptr<LayerPainter> painter,
@@ -37,13 +34,9 @@ class SkPictureContentLayerUpdater : public ContentLayerUpdater {
gfx::Rect* resulting_opaque_rect) OVERRIDE;
void DrawPicture(SkCanvas* canvas);
- bool layer_is_opaque() const { return layer_is_opaque_; }
-
private:
// Recording canvas.
SkPicture picture_;
- // True when it is known that all output pixels will be opaque.
- bool layer_is_opaque_;
DISALLOW_COPY_AND_ASSIGN(SkPictureContentLayerUpdater);
};
« no previous file with comments | « cc/resources/content_layer_updater.cc ('k') | cc/resources/skpicture_content_layer_updater.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698