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

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

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 12 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>
9
10 #include "base/macros.h"
8 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
10 #include "content/browser/compositor/owned_mailbox.h" 13 #include "content/browser/compositor/owned_mailbox.h"
11 #include "content/common/content_export.h" 14 #include "content/common/content_export.h"
12 15
13 namespace cc { 16 namespace cc {
14 class ContextProvider; 17 class ContextProvider;
15 } 18 }
16 19
17 namespace gfx { 20 namespace gfx {
18 class Rect; 21 class Rect;
19 class Size; 22 class Size;
20 } 23 }
21 24
22 namespace content { 25 namespace content {
23 class GLHelper; 26 class GLHelper;
24 27
25 // Create and manages texture mailbox to be used by Reflector. 28 // Create and manages texture mailbox to be used by Reflector.
26 class CONTENT_EXPORT ReflectorTexture { 29 class CONTENT_EXPORT ReflectorTexture {
27 public: 30 public:
28 explicit ReflectorTexture(cc::ContextProvider* provider); 31 explicit ReflectorTexture(cc::ContextProvider* provider);
29 ~ReflectorTexture(); 32 ~ReflectorTexture();
30 33
31 void CopyTextureFullImage(const gfx::Size& size); 34 void CopyTextureFullImage(const gfx::Size& size);
32 void CopyTextureSubImage(const gfx::Rect& size); 35 void CopyTextureSubImage(const gfx::Rect& size);
33 36
34 uint32 texture_id() const { return texture_id_; } 37 uint32_t texture_id() const { return texture_id_; }
35 scoped_refptr<OwnedMailbox> mailbox() { return mailbox_; } 38 scoped_refptr<OwnedMailbox> mailbox() { return mailbox_; }
36 39
37 private: 40 private:
38 scoped_refptr<OwnedMailbox> mailbox_; 41 scoped_refptr<OwnedMailbox> mailbox_;
39 scoped_ptr<GLHelper> gl_helper_; 42 scoped_ptr<GLHelper> gl_helper_;
40 uint32 texture_id_; 43 uint32_t texture_id_;
41 44
42 DISALLOW_COPY_AND_ASSIGN(ReflectorTexture); 45 DISALLOW_COPY_AND_ASSIGN(ReflectorTexture);
43 }; 46 };
44 47
45 } // namespace content 48 } // namespace content
46 49
47 #endif 50 #endif
OLDNEW
« no previous file with comments | « content/browser/compositor/reflector_impl_unittest.cc ('k') | content/browser/compositor/resize_lock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698