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

Side by Side Diff: content/common/gpu/gpu_command_buffer_stub.cc

Issue 10302022: Coverity: Initialize a member variable. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #if defined(ENABLE_GPU) 5 #if defined(ENABLE_GPU)
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 bool software) 51 bool software)
52 : channel_(channel), 52 : channel_(channel),
53 handle_(handle), 53 handle_(handle),
54 initial_size_(size), 54 initial_size_(size),
55 disallowed_features_(disallowed_features), 55 disallowed_features_(disallowed_features),
56 allowed_extensions_(allowed_extensions), 56 allowed_extensions_(allowed_extensions),
57 requested_attribs_(attribs), 57 requested_attribs_(attribs),
58 gpu_preference_(gpu_preference), 58 gpu_preference_(gpu_preference),
59 route_id_(route_id), 59 route_id_(route_id),
60 software_(software), 60 software_(software),
61 client_has_memory_allocation_changed_callback_(false),
61 last_flush_count_(0), 62 last_flush_count_(0),
62 allocation_(GpuMemoryAllocation::INVALID_RESOURCE_SIZE, 63 allocation_(GpuMemoryAllocation::INVALID_RESOURCE_SIZE,
63 GpuMemoryAllocation::kHasFrontbuffer | 64 GpuMemoryAllocation::kHasFrontbuffer |
64 GpuMemoryAllocation::kHasBackbuffer), 65 GpuMemoryAllocation::kHasBackbuffer),
65 parent_stub_for_initialization_(), 66 parent_stub_for_initialization_(),
66 parent_texture_for_initialization_(0), 67 parent_texture_for_initialization_(0),
67 watchdog_(watchdog) { 68 watchdog_(watchdog) {
68 if (share_group) { 69 if (share_group) {
69 context_group_ = share_group->context_group_; 70 context_group_ = share_group->context_group_;
70 } else { 71 } else {
(...skipping 578 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 } 650 }
650 651
651 void GpuCommandBufferStub::SetMemoryAllocation( 652 void GpuCommandBufferStub::SetMemoryAllocation(
652 const GpuMemoryAllocation& allocation) { 653 const GpuMemoryAllocation& allocation) {
653 allocation_ = allocation; 654 allocation_ = allocation;
654 655
655 SendMemoryAllocationToProxy(allocation); 656 SendMemoryAllocationToProxy(allocation);
656 } 657 }
657 658
658 #endif // defined(ENABLE_GPU) 659 #endif // defined(ENABLE_GPU)
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698