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

Side by Side Diff: content/browser/compositor/reflector_texture.h

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_BROWSER_COMPOSITOR_REFLECTOR_TEXTURE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_REFLECTOR_TEXTURE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_REFLECTOR_TEXTURE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_REFLECTOR_TEXTURE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "content/browser/compositor/owned_mailbox.h" 14 #include "content/browser/compositor/owned_mailbox.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 16
17 namespace cc { 17 namespace cc {
18 class ContextProvider; 18 class ContextProvider;
19 } 19 }
20 20
21 namespace gfx { 21 namespace gfx {
22 class Rect; 22 class Rect;
23 class Size; 23 class Size;
24 } 24 }
25 25
26 namespace display_compositor { 26 namespace viz {
27 class GLHelper; 27 class GLHelper;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 31
32 // Create and manages texture mailbox to be used by Reflector. 32 // Create and manages texture mailbox to be used by Reflector.
33 class CONTENT_EXPORT ReflectorTexture { 33 class CONTENT_EXPORT ReflectorTexture {
34 public: 34 public:
35 explicit ReflectorTexture(cc::ContextProvider* provider); 35 explicit ReflectorTexture(cc::ContextProvider* provider);
36 ~ReflectorTexture(); 36 ~ReflectorTexture();
37 37
38 void CopyTextureFullImage(const gfx::Size& size); 38 void CopyTextureFullImage(const gfx::Size& size);
39 void CopyTextureSubImage(const gfx::Rect& size); 39 void CopyTextureSubImage(const gfx::Rect& size);
40 40
41 uint32_t texture_id() const { return texture_id_; } 41 uint32_t texture_id() const { return texture_id_; }
42 scoped_refptr<OwnedMailbox> mailbox() { return mailbox_; } 42 scoped_refptr<OwnedMailbox> mailbox() { return mailbox_; }
43 43
44 private: 44 private:
45 scoped_refptr<OwnedMailbox> mailbox_; 45 scoped_refptr<OwnedMailbox> mailbox_;
46 std::unique_ptr<display_compositor::GLHelper> gl_helper_; 46 std::unique_ptr<viz::GLHelper> gl_helper_;
47 uint32_t texture_id_; 47 uint32_t texture_id_;
48 48
49 DISALLOW_COPY_AND_ASSIGN(ReflectorTexture); 49 DISALLOW_COPY_AND_ASSIGN(ReflectorTexture);
50 }; 50 };
51 51
52 } // namespace content 52 } // namespace content
53 53
54 #endif 54 #endif
OLDNEW
« no previous file with comments | « content/browser/compositor/reflector_impl_unittest.cc ('k') | content/browser/compositor/reflector_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698