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

Unified Diff: cc/layers/heads_up_display_layer_impl.h

Issue 900063002: Fixes for two different HUD issues related to win32k lockdown (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: i am a plumber Created 5 years, 10 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
Index: cc/layers/heads_up_display_layer_impl.h
diff --git a/cc/layers/heads_up_display_layer_impl.h b/cc/layers/heads_up_display_layer_impl.h
index 3e9436badf3a4b7480cb01fe8975392341c4f61c..e52857e0c16b6c631af83a78a5d83700a7354674 100644
--- a/cc/layers/heads_up_display_layer_impl.h
+++ b/cc/layers/heads_up_display_layer_impl.h
@@ -29,8 +29,10 @@ class PaintTimeCounter;
class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
public:
static scoped_ptr<HeadsUpDisplayLayerImpl> Create(LayerTreeImpl* tree_impl,
- int id) {
- return make_scoped_ptr(new HeadsUpDisplayLayerImpl(tree_impl, id));
+ int id,
+ SkTypeface* typeface) {
+ return make_scoped_ptr(
+ new HeadsUpDisplayLayerImpl(tree_impl, id, typeface));
}
~HeadsUpDisplayLayerImpl() override;
@@ -67,7 +69,9 @@ class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
const double indicator;
};
- HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl, int id);
+ HeadsUpDisplayLayerImpl(LayerTreeImpl* tree_impl,
+ int id,
+ SkTypeface* typeface);
const char* LayerTypeAsString() const override;
@@ -126,9 +130,10 @@ class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
void ReleaseUnmatchedSizeResources(ResourceProvider* resource_provider);
ScopedPtrVector<ScopedResource> resources_;
- scoped_ptr<SkCanvas> hud_canvas_;
+ skia::RefPtr<SkSurface> hud_surface_;
+ SkCanvas* hud_canvas_;
enne (OOO) 2015/02/05 01:30:28 Can you make this a RefPtr or just access it off t
scottmg 2015/02/05 03:28:32 Done.
- skia::RefPtr<SkTypeface> typeface_;
+ SkTypeface* typeface_;
enne (OOO) 2015/02/05 01:30:28 Can this be a skia::RefPtr all the way through the
scottmg 2015/02/05 03:28:32 I did the Windows one first where it's leaked earl
Graph fps_graph_;
Graph paint_time_graph_;

Powered by Google App Engine
This is Rietveld 408576698