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

Unified Diff: cc/layers/heads_up_display_layer_impl.h

Issue 491783003: cc: Resource list for headup display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename to ResourceSizeIsEqualTo Created 6 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 | « no previous file | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8ee386c6773509c8a45a9bfb8ced16136a1e7a47..3cba4f5bae1a2fec7644595aa90249b3594ab57f 100644
--- a/cc/layers/heads_up_display_layer_impl.h
+++ b/cc/layers/heads_up_display_layer_impl.h
@@ -119,7 +119,10 @@ class CC_EXPORT HeadsUpDisplayLayerImpl : public LayerImpl {
const std::string& label_text) const;
void DrawDebugRects(SkCanvas* canvas, DebugRectHistory* debug_rect_history);
- scoped_ptr<ScopedResource> hud_resource_;
+ void AcquireResource(ResourceProvider* resource_provider);
+ void ReleaseUnmatchedSizeResources(ResourceProvider* resource_provider);
+
+ ScopedPtrVector<ScopedResource> resources_;
scoped_ptr<SkCanvas> hud_canvas_;
skia::RefPtr<SkTypeface> typeface_;
« no previous file with comments | « no previous file | cc/layers/heads_up_display_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698