| OLD | NEW |
| 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 #include "content/browser/gpu/gpu_surface_tracker.h" | 5 #include "content/browser/gpu/gpu_surface_tracker.h" |
| 6 | 6 |
| 7 #include "base/logging.h" |
| 8 #include "build/build_config.h" |
| 9 |
| 7 #if defined(OS_ANDROID) | 10 #if defined(OS_ANDROID) |
| 8 #include <android/native_window_jni.h> | 11 #include <android/native_window_jni.h> |
| 9 #endif // defined(OS_ANDROID) | 12 #endif // defined(OS_ANDROID) |
| 10 | 13 |
| 11 #include "base/logging.h" | |
| 12 | |
| 13 namespace content { | 14 namespace content { |
| 14 | 15 |
| 15 GpuSurfaceTracker::GpuSurfaceTracker() | 16 GpuSurfaceTracker::GpuSurfaceTracker() |
| 16 : next_surface_id_(1) { | 17 : next_surface_id_(1) { |
| 17 GpuSurfaceLookup::InitInstance(this); | 18 GpuSurfaceLookup::InitInstance(this); |
| 18 } | 19 } |
| 19 | 20 |
| 20 GpuSurfaceTracker::~GpuSurfaceTracker() { | 21 GpuSurfaceTracker::~GpuSurfaceTracker() { |
| 21 GpuSurfaceLookup::InitInstance(NULL); | 22 GpuSurfaceLookup::InitInstance(NULL); |
| 22 } | 23 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 | 80 |
| 80 GpuSurfaceTracker::SurfaceInfo::SurfaceInfo( | 81 GpuSurfaceTracker::SurfaceInfo::SurfaceInfo( |
| 81 const gfx::AcceleratedWidget& native_widget, | 82 const gfx::AcceleratedWidget& native_widget, |
| 82 const gfx::GLSurfaceHandle& handle) | 83 const gfx::GLSurfaceHandle& handle) |
| 83 : native_widget(native_widget), handle(handle) {} | 84 : native_widget(native_widget), handle(handle) {} |
| 84 | 85 |
| 85 GpuSurfaceTracker::SurfaceInfo::~SurfaceInfo() { } | 86 GpuSurfaceTracker::SurfaceInfo::~SurfaceInfo() { } |
| 86 | 87 |
| 87 | 88 |
| 88 } // namespace content | 89 } // namespace content |
| OLD | NEW |