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

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

Issue 1905863002: Revert of Introduce components/display_compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 content {
27 class GLHelper; 27 class GLHelper;
28 }
29
30 namespace content {
31 28
32 // Create and manages texture mailbox to be used by Reflector. 29 // Create and manages texture mailbox to be used by Reflector.
33 class CONTENT_EXPORT ReflectorTexture { 30 class CONTENT_EXPORT ReflectorTexture {
34 public: 31 public:
35 explicit ReflectorTexture(cc::ContextProvider* provider); 32 explicit ReflectorTexture(cc::ContextProvider* provider);
36 ~ReflectorTexture(); 33 ~ReflectorTexture();
37 34
38 void CopyTextureFullImage(const gfx::Size& size); 35 void CopyTextureFullImage(const gfx::Size& size);
39 void CopyTextureSubImage(const gfx::Rect& size); 36 void CopyTextureSubImage(const gfx::Rect& size);
40 37
41 uint32_t texture_id() const { return texture_id_; } 38 uint32_t texture_id() const { return texture_id_; }
42 scoped_refptr<OwnedMailbox> mailbox() { return mailbox_; } 39 scoped_refptr<OwnedMailbox> mailbox() { return mailbox_; }
43 40
44 private: 41 private:
45 scoped_refptr<OwnedMailbox> mailbox_; 42 scoped_refptr<OwnedMailbox> mailbox_;
46 std::unique_ptr<display_compositor::GLHelper> gl_helper_; 43 std::unique_ptr<GLHelper> gl_helper_;
47 uint32_t texture_id_; 44 uint32_t texture_id_;
48 45
49 DISALLOW_COPY_AND_ASSIGN(ReflectorTexture); 46 DISALLOW_COPY_AND_ASSIGN(ReflectorTexture);
50 }; 47 };
51 48
52 } // namespace content 49 } // namespace content
53 50
54 #endif 51 #endif
OLDNEW
« no previous file with comments | « content/browser/compositor/owned_mailbox.cc ('k') | content/browser/compositor/reflector_texture.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698