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

Side by Side Diff: cc/resources/texture_mailbox.h

Issue 197223003: Start of hardware overlay support in CC with Ubercompositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/resources/texture_mailbox.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CC_RESOURCES_TEXTURE_MAILBOX_H_ 5 #ifndef CC_RESOURCES_TEXTURE_MAILBOX_H_
6 #define CC_RESOURCES_TEXTURE_MAILBOX_H_ 6 #define CC_RESOURCES_TEXTURE_MAILBOX_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 22 matching lines...) Expand all
33 bool Equals(const TextureMailbox&) const; 33 bool Equals(const TextureMailbox&) const;
34 34
35 const gpu::Mailbox& mailbox() const { return mailbox_holder_.mailbox; } 35 const gpu::Mailbox& mailbox() const { return mailbox_holder_.mailbox; }
36 const int8* name() const { return mailbox().name; } 36 const int8* name() const { return mailbox().name; }
37 uint32 target() const { return mailbox_holder_.texture_target; } 37 uint32 target() const { return mailbox_holder_.texture_target; }
38 uint32 sync_point() const { return mailbox_holder_.sync_point; } 38 uint32 sync_point() const { return mailbox_holder_.sync_point; }
39 void set_sync_point(int32 sync_point) { 39 void set_sync_point(int32 sync_point) {
40 mailbox_holder_.sync_point = sync_point; 40 mailbox_holder_.sync_point = sync_point;
41 } 41 }
42 42
43 bool allow_overlay() const { return allow_overlay_; }
44 void set_allow_overlay(bool allow_overlay) { allow_overlay_ = allow_overlay; }
45
43 base::SharedMemory* shared_memory() const { return shared_memory_; } 46 base::SharedMemory* shared_memory() const { return shared_memory_; }
44 gfx::Size shared_memory_size() const { return shared_memory_size_; } 47 gfx::Size shared_memory_size() const { return shared_memory_size_; }
45 size_t shared_memory_size_in_bytes() const; 48 size_t shared_memory_size_in_bytes() const;
46 49
47 private: 50 private:
48 gpu::MailboxHolder mailbox_holder_; 51 gpu::MailboxHolder mailbox_holder_;
49 base::SharedMemory* shared_memory_; 52 base::SharedMemory* shared_memory_;
50 gfx::Size shared_memory_size_; 53 gfx::Size shared_memory_size_;
54 bool allow_overlay_;
51 }; 55 };
52 56
53 } // namespace cc 57 } // namespace cc
54 58
55 #endif // CC_RESOURCES_TEXTURE_MAILBOX_H_ 59 #endif // CC_RESOURCES_TEXTURE_MAILBOX_H_
OLDNEW
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/resources/texture_mailbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698