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

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

Issue 9702081: Splitting GpuMemoryAllocation into two parts: for renderer and browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding unittests for GpuMemoryAllocation comparison functions since they have become not as trivial. Created 8 years, 9 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
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 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 5 #ifndef CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 6 #define CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 18 matching lines...) Expand all
29 #include "ui/gfx/gl/gpu_preference.h" 29 #include "ui/gfx/gl/gpu_preference.h"
30 #include "ui/gfx/native_widget_types.h" 30 #include "ui/gfx/native_widget_types.h"
31 #include "ui/gfx/size.h" 31 #include "ui/gfx/size.h"
32 #include "ui/gfx/surface/transport_dib.h" 32 #include "ui/gfx/surface/transport_dib.h"
33 33
34 #if defined(OS_MACOSX) 34 #if defined(OS_MACOSX)
35 #include "ui/gfx/surface/accelerated_surface_mac.h" 35 #include "ui/gfx/surface/accelerated_surface_mac.h"
36 #endif 36 #endif
37 37
38 class GpuChannel; 38 class GpuChannel;
39 class GpuMemoryAllocation; 39 struct GpuMemoryAllocation;
40 class GpuWatchdog; 40 class GpuWatchdog;
41 41
42 // This Base class is used to expose methods of GpuCommandBufferStub used for 42 // This Base class is used to expose methods of GpuCommandBufferStub used for
43 // testability. 43 // testability.
44 class CONTENT_EXPORT GpuCommandBufferStubBase { 44 class CONTENT_EXPORT GpuCommandBufferStubBase {
45 public: 45 public:
46 struct CONTENT_EXPORT SurfaceState { 46 struct CONTENT_EXPORT SurfaceState {
47 int32 surface_id; 47 int32 surface_id;
48 bool visible; 48 bool visible;
49 base::TimeTicks last_used_time; 49 base::TimeTicks last_used_time;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_; 242 IDMap<GpuVideoDecodeAccelerator, IDMapOwnPointer> video_decoders_;
243 243
244 ObserverList<DestructionObserver> destruction_observers_; 244 ObserverList<DestructionObserver> destruction_observers_;
245 245
246 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub); 246 DISALLOW_COPY_AND_ASSIGN(GpuCommandBufferStub);
247 }; 247 };
248 248
249 #endif // defined(ENABLE_GPU) 249 #endif // defined(ENABLE_GPU)
250 250
251 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_ 251 #endif // CONTENT_COMMON_GPU_GPU_COMMAND_BUFFER_STUB_H_
OLDNEW
« no previous file with comments | « content/common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc ('k') | content/common/gpu/gpu_command_buffer_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698