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

Side by Side Diff: content/renderer/render_thread_impl.h

Issue 19762004: Add multi-process GpuMemoryBuffer framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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_RENDERER_RENDER_THREAD_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory( 359 virtual scoped_ptr<base::SharedMemory> AllocateSharedMemory(
360 size_t size) OVERRIDE; 360 size_t size) OVERRIDE;
361 virtual int32 CreateViewCommandBuffer( 361 virtual int32 CreateViewCommandBuffer(
362 int32 surface_id, 362 int32 surface_id,
363 const GPUCreateCommandBufferConfig& init_params) OVERRIDE; 363 const GPUCreateCommandBufferConfig& init_params) OVERRIDE;
364 virtual void CreateImage( 364 virtual void CreateImage(
365 gfx::PluginWindowHandle window, 365 gfx::PluginWindowHandle window,
366 int32 image_id, 366 int32 image_id,
367 const CreateImageCallback& callback) OVERRIDE; 367 const CreateImageCallback& callback) OVERRIDE;
368 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; 368 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE;
369 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
370 size_t width,
371 size_t height,
372 unsigned internalformat) OVERRIDE;
369 373
370 void Init(); 374 void Init();
371 375
372 void OnSetZoomLevelForCurrentURL(const std::string& scheme, 376 void OnSetZoomLevelForCurrentURL(const std::string& scheme,
373 const std::string& host, 377 const std::string& host,
374 double zoom_level); 378 double zoom_level);
375 void OnCreateNewView(const ViewMsg_New_Params& params); 379 void OnCreateNewView(const ViewMsg_New_Params& params);
376 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id); 380 void OnTransferBitmap(const SkBitmap& bitmap, int resource_id);
377 void OnPurgePluginListCache(bool reload_pages); 381 void OnPurgePluginListCache(bool reload_pages);
378 void OnNetworkStateChanged(bool online); 382 void OnNetworkStateChanged(bool online);
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 496 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
493 497
494 base::ProcessId renderer_process_id_; 498 base::ProcessId renderer_process_id_;
495 499
496 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 500 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
497 }; 501 };
498 502
499 } // namespace content 503 } // namespace content
500 504
501 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 505 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698