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

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

Issue 654223006: Cleanup GpuMemoryBuffer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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
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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 // GpuChannelHostFactory implementation: 405 // GpuChannelHostFactory implementation:
406 bool IsMainThread() override; 406 bool IsMainThread() override;
407 base::MessageLoop* GetMainLoop() override; 407 base::MessageLoop* GetMainLoop() override;
408 scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() override; 408 scoped_refptr<base::MessageLoopProxy> GetIOLoopProxy() override;
409 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override; 409 scoped_ptr<base::SharedMemory> AllocateSharedMemory(size_t size) override;
410 CreateCommandBufferResult CreateViewCommandBuffer( 410 CreateCommandBufferResult CreateViewCommandBuffer(
411 int32 surface_id, 411 int32 surface_id,
412 const GPUCreateCommandBufferConfig& init_params, 412 const GPUCreateCommandBufferConfig& init_params,
413 int32 route_id) override; 413 int32 route_id) override;
414 virtual void WaitForPendingGpuMemoryBufferUsageToComplete(
415 const base::Closure& callback) override;
414 416
415 void Init(); 417 void Init();
416 418
417 void OnCreateNewFrame(int routing_id, int parent_routing_id); 419 void OnCreateNewFrame(int routing_id, int parent_routing_id);
418 void OnCreateNewFrameProxy(int routing_id, 420 void OnCreateNewFrameProxy(int routing_id,
419 int parent_routing_id, 421 int parent_routing_id,
420 int render_view_routing_id); 422 int render_view_routing_id);
421 void OnSetZoomLevelForCurrentURL(const std::string& scheme, 423 void OnSetZoomLevelForCurrentURL(const std::string& scheme,
422 const std::string& host, 424 const std::string& host,
423 double zoom_level); 425 double zoom_level);
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
567 bool is_one_copy_enabled_; 569 bool is_one_copy_enabled_;
568 570
569 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_; 571 std::map<int, mojo::MessagePipeHandle> pending_render_frame_connects_;
570 572
571 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 573 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
572 }; 574 };
573 575
574 } // namespace content 576 } // namespace content
575 577
576 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 578 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698