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

Side by Side Diff: cc/resources/content_layer_updater.h

Issue 85143002: Dirty rects always contain full tiles with delegated rendering. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/resources/layer_updater.h" 9 #include "cc/resources/layer_updater.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 14 matching lines...) Expand all
25 virtual void SetOpaque(bool) OVERRIDE; 25 virtual void SetOpaque(bool) OVERRIDE;
26 26
27 protected: 27 protected:
28 ContentLayerUpdater(scoped_ptr<LayerPainter> painter, 28 ContentLayerUpdater(scoped_ptr<LayerPainter> painter,
29 RenderingStatsInstrumentation* stats_instrumentation, 29 RenderingStatsInstrumentation* stats_instrumentation,
30 int layer_id); 30 int layer_id);
31 virtual ~ContentLayerUpdater(); 31 virtual ~ContentLayerUpdater();
32 32
33 void PaintContents(SkCanvas* canvas, 33 void PaintContents(SkCanvas* canvas,
34 gfx::Rect content_rect, 34 gfx::Rect content_rect,
35 gfx::Rect paint_rect,
35 float contents_width_scale, 36 float contents_width_scale,
36 float contents_height_scale, 37 float contents_height_scale,
37 gfx::Rect* resulting_opaque_rect); 38 gfx::Rect* resulting_opaque_rect);
38 gfx::Rect content_rect() const { return content_rect_; } 39 gfx::Rect content_rect() const { return content_rect_; }
40 gfx::Rect paint_rect() const { return paint_rect_; }
39 41
40 bool layer_is_opaque() const { return layer_is_opaque_; } 42 bool layer_is_opaque() const { return layer_is_opaque_; }
41 43
42 RenderingStatsInstrumentation* rendering_stats_instrumentation_; 44 RenderingStatsInstrumentation* rendering_stats_instrumentation_;
43 int layer_id_; 45 int layer_id_;
44 46
47 // True when it is known that all output pixels will be opaque.
48 bool layer_is_opaque_;
49
45 private: 50 private:
46 gfx::Rect content_rect_; 51 gfx::Rect content_rect_;
52 gfx::Rect paint_rect_;
47 scoped_ptr<LayerPainter> painter_; 53 scoped_ptr<LayerPainter> painter_;
48 54
49 protected:
50 // True when it is known that all output pixels will be opaque.
51 bool layer_is_opaque_;
52
53 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater); 55 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater);
54 }; 56 };
55 57
56 } // namespace cc 58 } // namespace cc
57 59
58 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 60 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698