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

Side by Side Diff: cc/layers/texture_layer.h

Issue 15001027: [Aura] Added Support for rendering software compositor frames as cc::TextureLayers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Passed(&foo) instead for Passed(foo.Pass()). Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 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_LAYERS_TEXTURE_LAYER_H_ 5 #ifndef CC_LAYERS_TEXTURE_LAYER_H_
6 #define CC_LAYERS_TEXTURE_LAYER_H_ 6 #define CC_LAYERS_TEXTURE_LAYER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Sets whether this context should rate limit on damage to prevent too many 56 // Sets whether this context should rate limit on damage to prevent too many
57 // frames from being queued up before the compositor gets a chance to run. 57 // frames from being queued up before the compositor gets a chance to run.
58 // Requires a non-nil client. Defaults to false. 58 // Requires a non-nil client. Defaults to false.
59 void SetRateLimitContext(bool rate_limit); 59 void SetRateLimitContext(bool rate_limit);
60 60
61 // Code path for plugins which supply their own texture ID. 61 // Code path for plugins which supply their own texture ID.
62 void SetTextureId(unsigned texture_id); 62 void SetTextureId(unsigned texture_id);
63 63
64 // Code path for plugins which supply their own mailbox. 64 // Code path for plugins which supply their own mailbox.
65 bool uses_mailbox() const { return uses_mailbox_; }
65 void SetTextureMailbox(const TextureMailbox& mailbox); 66 void SetTextureMailbox(const TextureMailbox& mailbox);
66 67
67 void WillModifyTexture(); 68 void WillModifyTexture();
68 69
69 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE; 70 virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE;
70 71
71 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE; 72 virtual void SetLayerTreeHost(LayerTreeHost* layer_tree_host) OVERRIDE;
72 virtual bool DrawsContent() const OVERRIDE; 73 virtual bool DrawsContent() const OVERRIDE;
73 virtual void Update(ResourceUpdateQueue* queue, 74 virtual void Update(ResourceUpdateQueue* queue,
74 const OcclusionTracker* occlusion, 75 const OcclusionTracker* occlusion,
(...skipping 23 matching lines...) Expand all
98 99
99 unsigned texture_id_; 100 unsigned texture_id_;
100 TextureMailbox texture_mailbox_; 101 TextureMailbox texture_mailbox_;
101 bool own_mailbox_; 102 bool own_mailbox_;
102 103
103 DISALLOW_COPY_AND_ASSIGN(TextureLayer); 104 DISALLOW_COPY_AND_ASSIGN(TextureLayer);
104 }; 105 };
105 106
106 } // namespace cc 107 } // namespace cc
107 #endif // CC_LAYERS_TEXTURE_LAYER_H_ 108 #endif // CC_LAYERS_TEXTURE_LAYER_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698