Index: content/common/gpu/texture_image_transport_surface.cc |
diff --git a/content/common/gpu/texture_image_transport_surface.cc b/content/common/gpu/texture_image_transport_surface.cc |
index f72d0ec0b5ccb064cfbf766a828f5c145e179a52..829a2767e31bcf734fb1b9503ae6e8ff2ce830fe 100644 |
--- a/content/common/gpu/texture_image_transport_surface.cc |
+++ b/content/common/gpu/texture_image_transport_surface.cc |
@@ -74,7 +74,7 @@ bool TextureImageTransportSurface::Initialize() { |
if (parent_channel) { |
const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
if (command_line->HasSwitch(switches::kUIPrioritizeInGpuProcess)) |
- helper_->SetPreemptByCounter(parent_channel->MessagesPendingCount()); |
+ helper_->SetPreemptByFlag(parent_channel->GetPreemptionFlag()); |
} |
return true; |