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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 22870016: Update the nine patch layer to use UI resources (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments by aelias. added invalidation of ui resources to android-side Created 7 years, 3 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 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_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 base::Time CurrentFrameTime(); 379 base::Time CurrentFrameTime();
380 380
381 virtual base::TimeTicks CurrentPhysicalTimeTicks() const; 381 virtual base::TimeTicks CurrentPhysicalTimeTicks() const;
382 382
383 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); } 383 scoped_ptr<base::Value> AsValue() const { return AsValueWithFrame(NULL); }
384 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const; 384 scoped_ptr<base::Value> AsValueWithFrame(FrameData* frame) const;
385 scoped_ptr<base::Value> ActivationStateAsValue() const; 385 scoped_ptr<base::Value> ActivationStateAsValue() const;
386 386
387 bool page_scale_animation_active() const { return !!page_scale_animation_; } 387 bool page_scale_animation_active() const { return !!page_scale_animation_; }
388 388
389 void CreateUIResource(UIResourceId uid, 389 virtual void CreateUIResource(UIResourceId uid,
390 scoped_refptr<UIResourceBitmap> bitmap); 390 scoped_refptr<UIResourceBitmap> bitmap);
391 // Deletes a UI resource. May safely be called more than once. 391 // Deletes a UI resource. May safely be called more than once.
392 void DeleteUIResource(UIResourceId uid); 392 virtual void DeleteUIResource(UIResourceId uid);
393 393
394 ResourceProvider::ResourceId ResourceIdForUIResource(UIResourceId uid) const; 394 virtual ResourceProvider::ResourceId ResourceIdForUIResource(
395 UIResourceId uid) const;
395 396
396 protected: 397 protected:
397 LayerTreeHostImpl( 398 LayerTreeHostImpl(
398 const LayerTreeSettings& settings, 399 const LayerTreeSettings& settings,
399 LayerTreeHostImplClient* client, 400 LayerTreeHostImplClient* client,
400 Proxy* proxy, 401 Proxy* proxy,
401 RenderingStatsInstrumentation* rendering_stats_instrumentation); 402 RenderingStatsInstrumentation* rendering_stats_instrumentation);
402 403
403 // Virtual for testing. 404 // Virtual for testing.
404 virtual void AnimateLayers(base::TimeTicks monotonic_time, 405 virtual void AnimateLayers(base::TimeTicks monotonic_time,
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 567
567 // Optional callback to notify of new tree activations. 568 // Optional callback to notify of new tree activations.
568 base::Closure tree_activation_callback_; 569 base::Closure tree_activation_callback_;
569 570
570 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 571 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
571 }; 572 };
572 573
573 } // namespace cc 574 } // namespace cc
574 575
575 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 576 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698