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

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

Issue 302603004: Plumb GpuMemoryBuffer allocation to GPU process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 virtual void CreateImage( 408 virtual void CreateImage(
409 gfx::PluginWindowHandle window, 409 gfx::PluginWindowHandle window,
410 int32 image_id, 410 int32 image_id,
411 const CreateImageCallback& callback) OVERRIDE; 411 const CreateImageCallback& callback) OVERRIDE;
412 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE; 412 virtual void DeleteImage(int32 image_id, int32 sync_point) OVERRIDE;
413 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer( 413 virtual scoped_ptr<gfx::GpuMemoryBuffer> AllocateGpuMemoryBuffer(
414 size_t width, 414 size_t width,
415 size_t height, 415 size_t height,
416 unsigned internalformat, 416 unsigned internalformat,
417 unsigned usage) OVERRIDE; 417 unsigned usage) OVERRIDE;
418 virtual void AllocateGpuMemoryBufferAsync(
419 const gfx::GpuMemoryBufferParams& params,
420 const AllocateGpuMemoryBufferCallback& callback) OVERRIDE;
418 421
419 // mojo::ShellClient implementation: 422 // mojo::ShellClient implementation:
420 virtual void AcceptConnection( 423 virtual void AcceptConnection(
421 const mojo::String& service_name, 424 const mojo::String& service_name,
422 mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE; 425 mojo::ScopedMessagePipeHandle message_pipe) OVERRIDE;
423 426
424 void Init(); 427 void Init();
425 428
426 void OnSetZoomLevelForCurrentURL(const std::string& scheme, 429 void OnSetZoomLevelForCurrentURL(const std::string& scheme,
427 const std::string& host, 430 const std::string& host,
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 bool is_distance_field_text_enabled_; 565 bool is_distance_field_text_enabled_;
563 bool is_zero_copy_enabled_; 566 bool is_zero_copy_enabled_;
564 bool is_one_copy_enabled_; 567 bool is_one_copy_enabled_;
565 568
566 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl); 569 DISALLOW_COPY_AND_ASSIGN(RenderThreadImpl);
567 }; 570 };
568 571
569 } // namespace content 572 } // namespace content
570 573
571 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_ 574 #endif // CONTENT_RENDERER_RENDER_THREAD_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698