diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 00:40:35 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-04-23 00:40:35 +0000 |
commit | 46a519fba6cefd6ca03a2643ded86bfe7d8f6d4d (patch) | |
tree | c533c6fe755d16a8d98da75147505ffcc8ea186c /ui | |
parent | c2a4e52708caf2c92e8f783ffb79e7212ad3f853 (diff) | |
download | chromium_src-46a519fba6cefd6ca03a2643ded86bfe7d8f6d4d.zip chromium_src-46a519fba6cefd6ca03a2643ded86bfe7d8f6d4d.tar.gz chromium_src-46a519fba6cefd6ca03a2643ded86bfe7d8f6d4d.tar.bz2 |
ui: Convert VLOGs to DVLOGs.
BUG=101424
R=sky@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10144008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@133394 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/aura/monitor_manager.cc | 2 | ||||
-rw-r--r-- | ui/base/gestures/gesture_sequence.cc | 8 | ||||
-rw-r--r-- | ui/base/gtk/g_object_destructor_filo.cc | 10 | ||||
-rw-r--r-- | ui/gfx/compositor/compositor.cc | 10 | ||||
-rw-r--r-- | ui/gfx/compositor/debug_utils.cc | 2 | ||||
-rw-r--r-- | ui/gfx/gl/gl_context_egl.cc | 6 | ||||
-rw-r--r-- | ui/gfx/gl/gl_implementation_android.cc | 2 | ||||
-rw-r--r-- | ui/gfx/gl/gl_implementation_linux.cc | 2 | ||||
-rw-r--r-- | ui/gfx/gl/gl_implementation_win.cc | 12 | ||||
-rw-r--r-- | ui/gfx/gl/gl_surface_egl.cc | 10 | ||||
-rw-r--r-- | ui/views/debug_utils.cc | 6 | ||||
-rw-r--r-- | ui/views/examples/menu_example.cc | 4 |
12 files changed, 37 insertions, 37 deletions
diff --git a/ui/aura/monitor_manager.cc b/ui/aura/monitor_manager.cc index b3f18b9..c884c6d 100644 --- a/ui/aura/monitor_manager.cc +++ b/ui/aura/monitor_manager.cc @@ -42,7 +42,7 @@ Monitor* MonitorManager::CreateMonitorFromSpec(const std::string& spec) { Monitor* monitor = new Monitor(); monitor->set_bounds(bounds); monitor->set_device_scale_factor(scale); - VLOG(1) << "Monitor bounds=" << bounds.ToString() << ", scale=" << scale; + DVLOG(1) << "Monitor bounds=" << bounds.ToString() << ", scale=" << scale; return monitor; } diff --git a/ui/base/gestures/gesture_sequence.cc b/ui/base/gestures/gesture_sequence.cc index fcab299..89314ef 100644 --- a/ui/base/gestures/gesture_sequence.cc +++ b/ui/base/gestures/gesture_sequence.cc @@ -41,7 +41,7 @@ TouchState TouchEventTypeToTouchState(ui::EventType type) { case ui::ET_TOUCH_CANCELLED: return TS_CANCELLED; default: - VLOG(1) << "Unknown Touch Event type"; + DVLOG(1) << "Unknown Touch Event type"; } return TS_UNKNOWN; } @@ -284,9 +284,9 @@ GestureSequence::Gestures* GestureSequence::ProcessTouchEventForGesture( } if (state_ != last_state) - VLOG(4) << "Gesture Sequence" - << " State: " << state_ - << " touch id: " << event.GetTouchId(); + DVLOG(4) << "Gesture Sequence" + << " State: " << state_ + << " touch id: " << event.GetTouchId(); if (last_state == GS_PENDING_SYNTHETIC_CLICK && state_ != last_state) long_press_timer_->Stop(); diff --git a/ui/base/gtk/g_object_destructor_filo.cc b/ui/base/gtk/g_object_destructor_filo.cc index 592db80..9c05b98 100644 --- a/ui/base/gtk/g_object_destructor_filo.cc +++ b/ui/base/gtk/g_object_destructor_filo.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -51,10 +51,10 @@ void GObjectDestructorFILO::Disconnect( if (!dtors.front().equal(object, callback, context)) { // Reenable this warning once this bug is fixed: // http://code.google.com/p/chromium/issues/detail?id=85603 - VLOG(1) << "Destructors should be unregistered the reverse order they " - << "were registered. But for object " << object << " " - << "deleted hook is "<< context << ", the last queued hook is " - << dtors.front().context; + DVLOG(1) << "Destructors should be unregistered the reverse order they " + << "were registered. But for object " << object << " " + << "deleted hook is "<< context << ", the last queued hook is " + << dtors.front().context; } for (HandlerList::iterator i = dtors.begin(); i != dtors.end(); ++i) { if (i->equal(object, callback, context)) { diff --git a/ui/gfx/compositor/compositor.cc b/ui/gfx/compositor/compositor.cc index 0a94054..3a8942a 100644 --- a/ui/gfx/compositor/compositor.cc +++ b/ui/gfx/compositor/compositor.cc @@ -6,19 +6,19 @@ #include "base/command_line.h" #include "base/threading/thread_restrictions.h" -#include "third_party/skia/include/images/SkImageEncoder.h" -#include "third_party/skia/include/core/SkBitmap.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositor.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebFloatPoint.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebRect.h" #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h" +#include "third_party/skia/include/core/SkBitmap.h" +#include "third_party/skia/include/images/SkImageEncoder.h" #include "ui/gfx/compositor/compositor_observer.h" #include "ui/gfx/compositor/compositor_switches.h" -#include "ui/gfx/compositor/test_web_graphics_context_3d.h" #include "ui/gfx/compositor/layer.h" +#include "ui/gfx/compositor/test_web_graphics_context_3d.h" #include "ui/gfx/gl/gl_context.h" -#include "ui/gfx/gl/gl_surface.h" #include "ui/gfx/gl/gl_implementation.h" +#include "ui/gfx/gl/gl_surface.h" #include "webkit/glue/webthread_impl.h" #include "webkit/gpu/webgraphicscontext3d_in_process_impl.h" @@ -42,7 +42,7 @@ ContextFactory* ContextFactory::GetInstance() { // We leak the shared resources so that we don't race with // the tear down of the gl_bindings. if (!g_context_factory) { - VLOG(1) << "Using DefaultSharedResource"; + DVLOG(1) << "Using DefaultSharedResource"; scoped_ptr<DefaultContextFactory> instance( new DefaultContextFactory()); if (instance->Initialize()) diff --git a/ui/gfx/compositor/debug_utils.cc b/ui/gfx/compositor/debug_utils.cc index 55e659d..2908749 100644 --- a/ui/gfx/compositor/debug_utils.cc +++ b/ui/gfx/compositor/debug_utils.cc @@ -10,8 +10,8 @@ #include <iostream> #include <string> -#include "base/utf_string_conversions.h" #include "base/logging.h" +#include "base/utf_string_conversions.h" #include "ui/gfx/compositor/layer.h" #include "ui/gfx/interpolated_transform.h" #include "ui/gfx/point.h" diff --git a/ui/gfx/gl/gl_context_egl.cc b/ui/gfx/gl/gl_context_egl.cc index 1908e30..b0a95e2 100644 --- a/ui/gfx/gl/gl_context_egl.cc +++ b/ui/gfx/gl/gl_context_egl.cc @@ -4,10 +4,10 @@ #include "ui/gfx/gl/gl_context_egl.h" -#include "build/build_config.h" #include "base/debug/trace_event.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" +#include "build/build_config.h" #include "third_party/angle/include/EGL/egl.h" #include "ui/gfx/gl/egl_util.h" #include "ui/gfx/gl/gl_surface.h" @@ -93,8 +93,8 @@ bool GLContextEGL::MakeCurrent(GLSurface* surface) { surface->GetHandle(), surface->GetHandle(), context_)) { - VLOG(1) << "eglMakeCurrent failed with error " - << GetLastEGLErrorString(); + DVLOG(1) << "eglMakeCurrent failed with error " + << GetLastEGLErrorString(); return false; } diff --git a/ui/gfx/gl/gl_implementation_android.cc b/ui/gfx/gl/gl_implementation_android.cc index 9e29e00..f1aa6dd 100644 --- a/ui/gfx/gl/gl_implementation_android.cc +++ b/ui/gfx/gl/gl_implementation_android.cc @@ -28,7 +28,7 @@ base::NativeLibrary LoadLibrary(const FilePath& filename) { std::string error; base::NativeLibrary library = base::LoadNativeLibrary(filename, &error); if (!library) { - VLOG(1) << "Failed to load " << filename.MaybeAsASCII() << ": " << error; + DVLOG(1) << "Failed to load " << filename.MaybeAsASCII() << ": " << error; return NULL; } return library; diff --git a/ui/gfx/gl/gl_implementation_linux.cc b/ui/gfx/gl/gl_implementation_linux.cc index db8cb45..378321a 100644 --- a/ui/gfx/gl/gl_implementation_linux.cc +++ b/ui/gfx/gl/gl_implementation_linux.cc @@ -35,7 +35,7 @@ base::NativeLibrary LoadLibrary(const FilePath& filename) { base::NativeLibrary library = base::LoadNativeLibrary(filename, &error); if (!library) { - VLOG(1) << "Failed to load " << filename.MaybeAsASCII() << ": " << error; + DVLOG(1) << "Failed to load " << filename.MaybeAsASCII() << ": " << error; return NULL; } return library; diff --git a/ui/gfx/gl/gl_implementation_win.cc b/ui/gfx/gl/gl_implementation_win.cc index 8aa473f..25122de 100644 --- a/ui/gfx/gl/gl_implementation_win.cc +++ b/ui/gfx/gl/gl_implementation_win.cc @@ -14,8 +14,8 @@ #include "base/logging.h" #include "base/native_library.h" #include "base/path_service.h" -#include "base/threading/thread_restrictions.h" #include "base/stringprintf.h" +#include "base/threading/thread_restrictions.h" #include "ui/gfx/gl/gl_bindings.h" #include "ui/gfx/gl/gl_implementation.h" @@ -56,7 +56,7 @@ bool LoadD3DXLibrary(const FilePath& module_path, if (!library) { library = base::LoadNativeLibrary(module_path.Append(name), NULL); if (!library) { - VLOG(1) << name << " not found."; + DVLOG(1) << name << " not found."; return false; } } @@ -101,7 +101,7 @@ bool InitializeGLBindings(GLImplementation implementation) { base::NativeLibrary library = base::LoadNativeLibrary( module_path.Append(L"osmesa.dll"), NULL); if (!library) { - VLOG(1) << "osmesa.dll not found"; + DVLOG(1) << "osmesa.dll not found"; return false; } @@ -158,7 +158,7 @@ bool InitializeGLBindings(GLImplementation implementation) { base::NativeLibrary gles_library = base::LoadNativeLibrary( gles_path.Append(L"libglesv2.dll"), NULL); if (!gles_library) { - VLOG(1) << "libglesv2.dll not found"; + DVLOG(1) << "libglesv2.dll not found"; return false; } @@ -167,7 +167,7 @@ bool InitializeGLBindings(GLImplementation implementation) { base::NativeLibrary egl_library = base::LoadNativeLibrary( gles_path.Append(L"libegl.dll"), NULL); if (!egl_library) { - VLOG(1) << "libegl.dll not found."; + DVLOG(1) << "libegl.dll not found."; base::UnloadNativeLibrary(gles_library); return false; } @@ -209,7 +209,7 @@ bool InitializeGLBindings(GLImplementation implementation) { base::NativeLibrary library = base::LoadNativeLibrary( FilePath(L"opengl32.dll"), NULL); if (!library) { - VLOG(1) << "opengl32.dll not found"; + DVLOG(1) << "opengl32.dll not found"; return false; } diff --git a/ui/gfx/gl/gl_surface_egl.cc b/ui/gfx/gl/gl_surface_egl.cc index df529a2..99a689b 100644 --- a/ui/gfx/gl/gl_surface_egl.cc +++ b/ui/gfx/gl/gl_surface_egl.cc @@ -4,10 +4,10 @@ #include "ui/gfx/gl/gl_surface_egl.h" -#include "build/build_config.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" +#include "build/build_config.h" #if !defined(OS_ANDROID) #include "third_party/angle/include/EGL/egl.h" #include "third_party/angle/include/EGL/eglext.h" @@ -239,8 +239,8 @@ bool NativeViewGLSurfaceEGL::IsOffscreen() { bool NativeViewGLSurfaceEGL::SwapBuffers() { if (!eglSwapBuffers(GetDisplay(), surface_)) { - VLOG(1) << "eglSwapBuffers failed with error " - << GetLastEGLErrorString(); + DVLOG(1) << "eglSwapBuffers failed with error " + << GetLastEGLErrorString(); return false; } @@ -277,8 +277,8 @@ bool NativeViewGLSurfaceEGL::PostSubBuffer( int x, int y, int width, int height) { DCHECK(supports_post_sub_buffer_); if (!eglPostSubBufferNV(GetDisplay(), surface_, x, y, width, height)) { - VLOG(1) << "eglPostSubBufferNV failed with error " - << GetLastEGLErrorString(); + DVLOG(1) << "eglPostSubBufferNV failed with error " + << GetLastEGLErrorString(); return false; } return true; diff --git a/ui/views/debug_utils.cc b/ui/views/debug_utils.cc index 9298122..ad00563 100644 --- a/ui/views/debug_utils.cc +++ b/ui/views/debug_utils.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -31,7 +31,7 @@ void PrintViewHierarchyImp(const View* view, int indent) { buf << L' '; buf << view; - VLOG(1) << buf.str(); + DVLOG(1) << buf.str(); std::cout << buf.str() << std::endl; for (int i = 0, count = view->child_count(); i < count; ++i) @@ -51,7 +51,7 @@ void PrintFocusHierarchyImp(const View* view, int indent) { buf << L' '; buf << view; - VLOG(1) << buf.str(); + DVLOG(1) << buf.str(); std::cout << buf.str() << std::endl; if (view->child_count() > 0) diff --git a/ui/views/examples/menu_example.cc b/ui/views/examples/menu_example.cc index 8b3ceb2..7eb3fc4 100644 --- a/ui/views/examples/menu_example.cc +++ b/ui/views/examples/menu_example.cc @@ -164,10 +164,10 @@ void ExampleMenuModel::ExecuteCommand(int command_id) { // Update the check status. std::set<int>::iterator iter = checked_fruits_.find(command_id); if (iter == checked_fruits_.end()) { - VLOG(1) << "Checked " << checked_fruit; + DVLOG(1) << "Checked " << checked_fruit; checked_fruits_.insert(command_id); } else { - VLOG(1) << "Unchecked " << checked_fruit; + DVLOG(1) << "Unchecked " << checked_fruit; checked_fruits_.erase(iter); } break; |