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

Side by Side Diff: cc/texture_layer.h

Issue 11365025: Make cc a component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 1 month 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/texture_draw_quad.h ('k') | cc/texture_layer_impl.h » ('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 TextureLayerChromium_h 5 #ifndef TextureLayerChromium_h
6 #define TextureLayerChromium_h 6 #define TextureLayerChromium_h
7 7
8 #include "cc/cc_export.h"
8 #include "cc/layer.h" 9 #include "cc/layer.h"
9 10
10 namespace WebKit { 11 namespace WebKit {
11 class WebGraphicsContext3D; 12 class WebGraphicsContext3D;
12 } 13 }
13 14
14 namespace cc { 15 namespace cc {
15 16
16 class TextureLayerClient; 17 class TextureLayerClient;
17 18
18 // A Layer containing a the rendered output of a plugin instance. 19 // A Layer containing a the rendered output of a plugin instance.
19 class TextureLayer : public Layer { 20 class CC_EXPORT TextureLayer : public Layer {
20 public: 21 public:
21 // If this texture layer requires special preparation logic for each frame d riven by 22 // If this texture layer requires special preparation logic for each frame d riven by
22 // the compositor, pass in a non-nil client. Pass in a nil client pointer if texture updates 23 // the compositor, pass in a non-nil client. Pass in a nil client pointer if texture updates
23 // are driven by an external process. 24 // are driven by an external process.
24 static scoped_refptr<TextureLayer> create(TextureLayerClient*); 25 static scoped_refptr<TextureLayer> create(TextureLayerClient*);
25 26
26 void clearClient() { m_client = 0; } 27 void clearClient() { m_client = 0; }
27 28
28 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE; 29 virtual scoped_ptr<LayerImpl> createLayerImpl() OVERRIDE;
29 30
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool m_premultipliedAlpha; 66 bool m_premultipliedAlpha;
66 bool m_rateLimitContext; 67 bool m_rateLimitContext;
67 bool m_contextLost; 68 bool m_contextLost;
68 bool m_contentCommitted; 69 bool m_contentCommitted;
69 70
70 unsigned m_textureId; 71 unsigned m_textureId;
71 }; 72 };
72 73
73 } 74 }
74 #endif 75 #endif
OLDNEW
« no previous file with comments | « cc/texture_draw_quad.h ('k') | cc/texture_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698