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

Unified Diff: content/renderer/gpu/mailbox_output_surface.cc

Issue 1547073003: Switch to standard integer types in content/renderer/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « content/renderer/gpu/mailbox_output_surface.h ('k') | content/renderer/gpu/queue_message_swap_promise.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/mailbox_output_surface.cc
diff --git a/content/renderer/gpu/mailbox_output_surface.cc b/content/renderer/gpu/mailbox_output_surface.cc
index de98102e94fec5fb33caa4281cf8999329c3e8e5..19a7efdb2c3fbdfdc91bfa247a19f8f48ca2264c 100644
--- a/content/renderer/gpu/mailbox_output_surface.cc
+++ b/content/renderer/gpu/mailbox_output_surface.cc
@@ -23,8 +23,8 @@ using gpu::gles2::GLES2Interface;
namespace content {
MailboxOutputSurface::MailboxOutputSurface(
- int32 routing_id,
- uint32 output_surface_id,
+ int32_t routing_id,
+ uint32_t output_surface_id,
const scoped_refptr<ContextProviderCommandBuffer>& context_provider,
const scoped_refptr<ContextProviderCommandBuffer>& worker_context_provider,
scoped_refptr<FrameSwapMessageQueue> swap_frame_message_queue,
@@ -152,7 +152,7 @@ void MailboxOutputSurface::BindFramebuffer() {
0);
}
-void MailboxOutputSurface::OnSwapAck(uint32 output_surface_id,
+void MailboxOutputSurface::OnSwapAck(uint32_t output_surface_id,
const cc::CompositorFrameAck& ack) {
// Ignore message if it's a stale one coming from a different output surface
// (e.g. after a lost context).
@@ -189,7 +189,7 @@ void MailboxOutputSurface::OnSwapAck(uint32 output_surface_id,
// The browser always keeps one texture as the frontbuffer.
// If it does not return a mailbox, it discarded the frontbuffer which is
// the oldest texture we sent.
- uint32 texture_id = pending_textures_.front().texture_id;
+ uint32_t texture_id = pending_textures_.front().texture_id;
if (texture_id)
context_provider_->ContextGL()->DeleteTextures(1, &texture_id);
pending_textures_.pop_front();
@@ -224,7 +224,7 @@ size_t MailboxOutputSurface::GetNumAcksPending() {
MailboxOutputSurface::TransferableFrame::TransferableFrame() : texture_id(0) {}
MailboxOutputSurface::TransferableFrame::TransferableFrame(
- uint32 texture_id,
+ uint32_t texture_id,
const gpu::Mailbox& mailbox,
const gfx::Size size)
: texture_id(texture_id), mailbox(mailbox), size(size) {}
« no previous file with comments | « content/renderer/gpu/mailbox_output_surface.h ('k') | content/renderer/gpu/queue_message_swap_promise.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698