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

Side by Side Diff: ui/compositor/compositor.h

Issue 61553006: Rename WebKit namespace to blink (part 5) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | « ui/base/ime/text_input_type.h ('k') | ui/compositor/layer_unittest.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 27 matching lines...) Expand all
38 38
39 namespace gfx { 39 namespace gfx {
40 class GLContext; 40 class GLContext;
41 class GLSurface; 41 class GLSurface;
42 class GLShareGroup; 42 class GLShareGroup;
43 class Point; 43 class Point;
44 class Rect; 44 class Rect;
45 class Size; 45 class Size;
46 } 46 }
47 47
48 namespace WebKit { 48 namespace blink {
49 class WebGraphicsContext3D; 49 class WebGraphicsContext3D;
50 } 50 }
51 51
52 namespace webkit { 52 namespace webkit {
53 namespace gpu { 53 namespace gpu {
54 class ContextProviderInProcess; 54 class ContextProviderInProcess;
55 class WebGraphicsContext3DInProcessCommandBufferImpl; 55 class WebGraphicsContext3DInProcessCommandBufferImpl;
56 } 56 }
57 } 57 }
58 58
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // to a layer. 120 // to a layer.
121 class COMPOSITOR_EXPORT Texture : public base::RefCounted<Texture> { 121 class COMPOSITOR_EXPORT Texture : public base::RefCounted<Texture> {
122 public: 122 public:
123 Texture(bool flipped, const gfx::Size& size, float device_scale_factor); 123 Texture(bool flipped, const gfx::Size& size, float device_scale_factor);
124 124
125 bool flipped() const { return flipped_; } 125 bool flipped() const { return flipped_; }
126 gfx::Size size() const { return size_; } 126 gfx::Size size() const { return size_; }
127 float device_scale_factor() const { return device_scale_factor_; } 127 float device_scale_factor() const { return device_scale_factor_; }
128 128
129 virtual unsigned int PrepareTexture() = 0; 129 virtual unsigned int PrepareTexture() = 0;
130 virtual WebKit::WebGraphicsContext3D* HostContext3D() = 0; 130 virtual blink::WebGraphicsContext3D* HostContext3D() = 0;
131 131
132 // Replaces the texture with the texture from the specified mailbox. 132 // Replaces the texture with the texture from the specified mailbox.
133 virtual void Consume(const std::string& mailbox_name, 133 virtual void Consume(const std::string& mailbox_name,
134 const gfx::Size& new_size) {} 134 const gfx::Size& new_size) {}
135 135
136 // Moves the texture into the mailbox and returns the mailbox name. 136 // Moves the texture into the mailbox and returns the mailbox name.
137 // The texture must have been previously consumed from a mailbox. 137 // The texture must have been previously consumed from a mailbox.
138 virtual std::string Produce(); 138 virtual std::string Produce();
139 139
140 protected: 140 protected:
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 bool draw_on_compositing_end_; 381 bool draw_on_compositing_end_;
382 382
383 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 383 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
384 384
385 DISALLOW_COPY_AND_ASSIGN(Compositor); 385 DISALLOW_COPY_AND_ASSIGN(Compositor);
386 }; 386 };
387 387
388 } // namespace ui 388 } // namespace ui
389 389
390 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 390 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « ui/base/ime/text_input_type.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698