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

Side by Side Diff: content/browser/gpu/browser_gpu_channel_host_factory.h

Issue 383303004: Added more detailed result codes for CreateViewCommandBuffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Deleted commented-out code from test. Created 6 years, 5 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 | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | 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 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 6 #define CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 11 matching lines...) Expand all
22 static void Initialize(bool establish_gpu_channel); 22 static void Initialize(bool establish_gpu_channel);
23 static void Terminate(); 23 static void Terminate();
24 static BrowserGpuChannelHostFactory* instance() { return instance_; } 24 static BrowserGpuChannelHostFactory* instance() { return instance_; }
25 25
26 // GpuChannelHostFactory implementation. 26 // GpuChannelHostFactory implementation.
27 virtual bool IsMainThread() OVERRIDE; 27 virtual bool IsMainThread() OVERRIDE;
28 virtual base::MessageLoop* GetMainLoop() OVERRIDE; 28 virtual base::MessageLoop* GetMainLoop() OVERRIDE;
29 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE; 29 virtual scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() OVERRIDE;
30 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( 30 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(
31 size_t size) OVERRIDE; 31 size_t size) OVERRIDE;
32 virtual bool CreateViewCommandBuffer( 32 virtual CreateCommandBufferResult CreateViewCommandBuffer(
33 int32 surface_id, 33 int32 surface_id,
34 const GPUCreateCommandBufferConfig& init_params, 34 const GPUCreateCommandBufferConfig& init_params,
35 int32 route_id) OVERRIDE; 35 int32 route_id) OVERRIDE;
36 virtual void CreateImage( 36 virtual void CreateImage(
37 gfx::PluginWindowHandle window, 37 gfx::PluginWindowHandle window,
38 int32 image_id, 38 int32 image_id,
39 const CreateImageCallback& callback) OVERRIDE; 39 const CreateImageCallback& callback) OVERRIDE;
40 virtual void DeleteImage(int32 image_idu, int32 sync_point) OVERRIDE; 40 virtual void DeleteImage(int32 image_idu, int32 sync_point) OVERRIDE;
41 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 41 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
42 size_t width, 42 size_t width,
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 class EstablishRequest; 78 class EstablishRequest;
79 79
80 BrowserGpuChannelHostFactory(); 80 BrowserGpuChannelHostFactory();
81 virtual ~BrowserGpuChannelHostFactory(); 81 virtual ~BrowserGpuChannelHostFactory();
82 82
83 void GpuChannelEstablished(); 83 void GpuChannelEstablished();
84 void CreateViewCommandBufferOnIO( 84 void CreateViewCommandBufferOnIO(
85 CreateRequest* request, 85 CreateRequest* request,
86 int32 surface_id, 86 int32 surface_id,
87 const GPUCreateCommandBufferConfig& init_params); 87 const GPUCreateCommandBufferConfig& init_params);
88 static void CommandBufferCreatedOnIO(CreateRequest* request, bool succeeded); 88 static void CommandBufferCreatedOnIO(CreateRequest* request,
89 CreateCommandBufferResult result);
89 void CreateImageOnIO( 90 void CreateImageOnIO(
90 gfx::PluginWindowHandle window, 91 gfx::PluginWindowHandle window,
91 int32 image_id, 92 int32 image_id,
92 const CreateImageCallback& callback); 93 const CreateImageCallback& callback);
93 static void ImageCreatedOnIO( 94 static void ImageCreatedOnIO(
94 const CreateImageCallback& callback, const gfx::Size size); 95 const CreateImageCallback& callback, const gfx::Size size);
95 static void OnImageCreated( 96 static void OnImageCreated(
96 const CreateImageCallback& callback, const gfx::Size size); 97 const CreateImageCallback& callback, const gfx::Size size);
97 void DeleteImageOnIO(int32 image_id, int32 sync_point); 98 void DeleteImageOnIO(int32 image_id, int32 sync_point);
98 static void AddFilterOnIO(int gpu_host_id, 99 static void AddFilterOnIO(int gpu_host_id,
(...skipping 26 matching lines...) Expand all
125 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_; 126 CreateGpuMemoryBufferCallbackMap create_gpu_memory_buffer_requests_;
126 127
127 static BrowserGpuChannelHostFactory* instance_; 128 static BrowserGpuChannelHostFactory* instance_;
128 129
129 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory); 130 DISALLOW_COPY_AND_ASSIGN(BrowserGpuChannelHostFactory);
130 }; 131 };
131 132
132 } // namespace content 133 } // namespace content
133 134
134 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_ 135 #endif // CONTENT_BROWSER_GPU_BROWSER_GPU_CHANNEL_HOST_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/gpu/browser_gpu_channel_host_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698