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

Unified Diff: cc/resources/texture_mailbox.h

Issue 1957583002: cc: Add GpuMemoryBufferId to TextureMailbox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unsigned -> signed Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/resources/resource_provider.cc ('k') | cc/resources/texture_mailbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox.h
diff --git a/cc/resources/texture_mailbox.h b/cc/resources/texture_mailbox.h
index 8dcf98ed3802e0ade6468d5f95f3f99631a69fe5..e93a63cc2f5aa34593bcdc7ad2259c08c791d8ff 100644
--- a/cc/resources/texture_mailbox.h
+++ b/cc/resources/texture_mailbox.h
@@ -14,6 +14,7 @@
#include "cc/base/cc_export.h"
#include "gpu/command_buffer/common/mailbox_holder.h"
#include "ui/gfx/geometry/size.h"
+#include "ui/gfx/gpu_memory_buffer.h"
namespace cc {
class SharedBitmap;
@@ -31,6 +32,7 @@ class CC_EXPORT TextureMailbox {
const gpu::SyncToken& sync_token,
uint32_t target,
const gfx::Size& size_in_pixels,
+ const gfx::GpuMemoryBufferId& gpu_memory_buffer_id,
bool is_overlay_candidate,
bool secure_output_only);
TextureMailbox(SharedBitmap* shared_bitmap, const gfx::Size& size_in_pixels);
@@ -56,6 +58,9 @@ class CC_EXPORT TextureMailbox {
mailbox_holder_.sync_token = sync_token;
}
+ gfx::GpuMemoryBufferId gpu_memory_buffer_id() const {
+ return gpu_memory_buffer_id_;
+ }
bool is_overlay_candidate() const { return is_overlay_candidate_; }
bool secure_output_only() const { return secure_output_only_; }
bool nearest_neighbor() const { return nearest_neighbor_; }
@@ -73,6 +78,7 @@ class CC_EXPORT TextureMailbox {
gpu::MailboxHolder mailbox_holder_;
SharedBitmap* shared_bitmap_;
gfx::Size size_in_pixels_;
+ gfx::GpuMemoryBufferId gpu_memory_buffer_id_;
bool is_overlay_candidate_;
bool secure_output_only_;
bool nearest_neighbor_;
« 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