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

Unified Diff: chrome/gpu/gpu_command_buffer_stub.h

Issue 5618002: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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 | « chrome/browser/in_process_webkit/indexed_db_context.cc ('k') | chrome/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/gpu/gpu_command_buffer_stub.h
diff --git a/chrome/gpu/gpu_command_buffer_stub.h b/chrome/gpu/gpu_command_buffer_stub.h
index 6d888aa4ebff580429a2dbcef8a28d9302377587..e61bdd072129ba8d7f87efbfa4a2e45ebba6a46b 100644
--- a/chrome/gpu/gpu_command_buffer_stub.h
+++ b/chrome/gpu/gpu_command_buffer_stub.h
@@ -54,12 +54,12 @@ class GpuCommandBufferStub
#if defined(OS_WIN)
// Called only by the compositor window's window proc
void OnCompositorWindowPainted();
-#endif
+#endif // defined(OS_WIN)
#if defined(OS_MACOSX)
// Called only by the GpuChannel.
void AcceleratedSurfaceBuffersSwapped(uint64 swap_buffers_count);
-#endif
+#endif // defined(OS_MACOSX)
private:
// Message handlers:
@@ -80,10 +80,11 @@ class GpuCommandBufferStub
#if defined(OS_MACOSX)
void OnSetWindowSize(const gfx::Size& size);
void SwapBuffersCallback();
-#elif defined(OS_WIN)
+#endif // defined(OS_MACOSX)
+
+#if defined(OS_WIN)
bool CreateCompositorWindow();
- HWND compositor_window_;
-#endif
+#endif // defined(OS_WIN)
void ResizeCallback(gfx::Size size);
@@ -100,6 +101,10 @@ class GpuCommandBufferStub
uint32 parent_texture_id_;
int32 route_id_;
+#if defined(OS_WIN)
+ HWND compositor_window_;
+#endif // defined(OS_WIN)
+
// The following two fields are used on Mac OS X to identify the window
// for the rendering results on the browser side.
int32 renderer_id_;
@@ -111,6 +116,6 @@ class GpuCommandBufferStub
DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
};
-#endif // ENABLE_GPU
+#endif // defined(ENABLE_GPU)
#endif // CHROME_GPU_GPU_COMMAND_BUFFER_STUB_H_
« no previous file with comments | « chrome/browser/in_process_webkit/indexed_db_context.cc ('k') | chrome/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698