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

Unified Diff: cc/resources/texture_mailbox.cc

Issue 1387283002: cc: Remove redundant is_overlay arguments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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
Index: cc/resources/texture_mailbox.cc
diff --git a/cc/resources/texture_mailbox.cc b/cc/resources/texture_mailbox.cc
index 7e4dd29708ccd4e61b3dafcc2306a4be1cdfccef..24f6e5ea2612747ba8c529dcd6e82d5b31718853 100644
--- a/cc/resources/texture_mailbox.cc
+++ b/cc/resources/texture_mailbox.cc
@@ -15,37 +15,35 @@ TextureMailbox::TextureMailbox() : shared_bitmap_(NULL) {
TextureMailbox::TextureMailbox(const gpu::MailboxHolder& mailbox_holder)
: mailbox_holder_(mailbox_holder),
shared_bitmap_(NULL),
- allow_overlay_(false),
- nearest_neighbor_(false) {
-}
+ bound_to_gl_image_(false),
+ nearest_neighbor_(false) {}
TextureMailbox::TextureMailbox(const gpu::Mailbox& mailbox,
uint32 target,
uint32 sync_point)
: mailbox_holder_(mailbox, target, sync_point),
shared_bitmap_(NULL),
- allow_overlay_(false),
- nearest_neighbor_(false) {
-}
+ bound_to_gl_image_(false),
+ nearest_neighbor_(false) {}
TextureMailbox::TextureMailbox(const gpu::Mailbox& mailbox,
uint32 target,
uint32 sync_point,
const gfx::Size& size_in_pixels,
- bool allow_overlay)
+ bool bound_to_gl_image)
: mailbox_holder_(mailbox, target, sync_point),
shared_bitmap_(nullptr),
size_in_pixels_(size_in_pixels),
- allow_overlay_(allow_overlay),
+ bound_to_gl_image_(bound_to_gl_image),
nearest_neighbor_(false) {
- DCHECK_IMPLIES(allow_overlay, !size_in_pixels.IsEmpty());
+ DCHECK_IMPLIES(bound_to_gl_image, !size_in_pixels.IsEmpty());
}
TextureMailbox::TextureMailbox(SharedBitmap* shared_bitmap,
const gfx::Size& size_in_pixels)
: shared_bitmap_(shared_bitmap),
size_in_pixels_(size_in_pixels),
- allow_overlay_(false),
+ bound_to_gl_image_(false),
nearest_neighbor_(false) {
// If an embedder of cc gives an invalid TextureMailbox, we should crash
// here to identify the offender.

Powered by Google App Engine
This is Rietveld 408576698