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

Side by Side Diff: cc/layers/texture_layer_impl.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: Removed SharedMemory::DuplicateHandle. 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_LAYERS_TEXTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 virtual bool CanClipSelf() const OVERRIDE; 61 virtual bool CanClipSelf() const OVERRIDE;
62 62
63 void SetTextureMailbox(const TextureMailbox& mailbox); 63 void SetTextureMailbox(const TextureMailbox& mailbox);
64 64
65 private: 65 private:
66 TextureLayerImpl(LayerTreeImpl* tree_impl, int id, bool uses_mailbox); 66 TextureLayerImpl(LayerTreeImpl* tree_impl, int id, bool uses_mailbox);
67 67
68 virtual const char* LayerTypeAsString() const OVERRIDE; 68 virtual const char* LayerTypeAsString() const OVERRIDE;
69 void FreeTextureMailbox(); 69 void FreeTextureMailbox();
70 70
71 bool uses_mailbox_;
danakj 2013/06/07 14:56:42 nit: no need to move this
slavi 2013/06/07 21:49:21 Done.
72
71 unsigned texture_id_; 73 unsigned texture_id_;
72 ResourceProvider::ResourceId external_texture_resource_; 74 ResourceProvider::ResourceId external_texture_resource_;
73 bool premultiplied_alpha_; 75 bool premultiplied_alpha_;
74 bool flipped_; 76 bool flipped_;
75 gfx::PointF uv_top_left_; 77 gfx::PointF uv_top_left_;
76 gfx::PointF uv_bottom_right_; 78 gfx::PointF uv_bottom_right_;
77 float vertex_opacity_[4]; 79 float vertex_opacity_[4];
78 80
79 TextureMailbox texture_mailbox_; 81 TextureMailbox texture_mailbox_;
80 bool uses_mailbox_;
81 bool own_mailbox_; 82 bool own_mailbox_;
82 83
83 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); 84 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl);
84 }; 85 };
85 86
86 } // namespace cc 87 } // namespace cc
87 88
88 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ 89 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698