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

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: update Created 3 years, 9 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 virtual void DidPrepareTiles() = 0; 115 virtual void DidPrepareTiles() = 0;
116 116
117 // Called when page scale animation has completed on the impl thread. 117 // Called when page scale animation has completed on the impl thread.
118 virtual void DidCompletePageScaleAnimationOnImplThread() = 0; 118 virtual void DidCompletePageScaleAnimationOnImplThread() = 0;
119 119
120 // Called when output surface asks for a draw. 120 // Called when output surface asks for a draw.
121 virtual void OnDrawForCompositorFrameSink( 121 virtual void OnDrawForCompositorFrameSink(
122 bool resourceless_software_draw) = 0; 122 bool resourceless_software_draw) = 0;
123 123
124 virtual void NeedsImplSideInvalidation() = 0; 124 virtual void NeedsImplSideInvalidation() = 0;
125 // Called when a requested image decode completes.
126 virtual void NotifyImageDecodeRequestFinished() = 0;
125 127
126 protected: 128 protected:
127 virtual ~LayerTreeHostImplClient() {} 129 virtual ~LayerTreeHostImplClient() {}
128 }; 130 };
129 131
130 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering 132 // LayerTreeHostImpl owns the LayerImpl trees as well as associated rendering
131 // state. 133 // state.
132 class CC_EXPORT LayerTreeHostImpl 134 class CC_EXPORT LayerTreeHostImpl
133 : public InputHandler, 135 : public InputHandler,
134 public TileManagerClient, 136 public TileManagerClient,
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after
852 // These callbacks are stored here to be transfered to the main thread when we 854 // These callbacks are stored here to be transfered to the main thread when we
853 // begin main frame. These callbacks must only be called on the main thread. 855 // begin main frame. These callbacks must only be called on the main thread.
854 std::vector<base::Closure> completed_image_decode_callbacks_; 856 std::vector<base::Closure> completed_image_decode_callbacks_;
855 857
856 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 858 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
857 }; 859 };
858 860
859 } // namespace cc 861 } // namespace cc
860 862
861 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 863 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698