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

Side by Side Diff: chrome/renderer/webgraphicscontext3d_command_buffer_impl.h

Issue 3531008: Integrated Pepper3D v2 with the accelerated compositor.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(ENABLE_GPU) 9 #if defined(ENABLE_GPU)
10 10
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 // TODO(kbr): remove supportsCopyTextureToParentTextureCHROMIUM 361 // TODO(kbr): remove supportsCopyTextureToParentTextureCHROMIUM
362 virtual bool supportsCopyTextureToParentTextureCHROMIUM(); 362 virtual bool supportsCopyTextureToParentTextureCHROMIUM();
363 virtual void copyTextureToParentTextureCHROMIUM( 363 virtual void copyTextureToParentTextureCHROMIUM(
364 unsigned texture, unsigned parentTexture); 364 unsigned texture, unsigned parentTexture);
365 365
366 virtual unsigned createCompositorTexture(unsigned width, unsigned height); 366 virtual unsigned createCompositorTexture(unsigned width, unsigned height);
367 virtual void deleteCompositorTexture(unsigned parent_texture); 367 virtual void deleteCompositorTexture(unsigned parent_texture);
368 virtual void copyTextureToCompositor(unsigned texture, 368 virtual void copyTextureToCompositor(unsigned texture,
369 unsigned parent_texture); 369 unsigned parent_texture);
370 370
371 ggl::Context* context() { return context_; }
372
371 private: 373 private:
372 // The GGL context we use for OpenGL rendering. 374 // The GGL context we use for OpenGL rendering.
373 ggl::Context* context_; 375 ggl::Context* context_;
374 // If rendering directly to WebView, weak pointer to it. 376 // If rendering directly to WebView, weak pointer to it.
375 WebKit::WebView* web_view_; 377 WebKit::WebView* web_view_;
376 #if defined(OS_MACOSX) 378 #if defined(OS_MACOSX)
377 // "Fake" plugin window handle in browser process for the compositor's output. 379 // "Fake" plugin window handle in browser process for the compositor's output.
378 gfx::PluginWindowHandle plugin_handle_; 380 gfx::PluginWindowHandle plugin_handle_;
379 #endif 381 #endif
380 382
(...skipping 10 matching lines...) Expand all
391 scoped_ptr<uint8> scanline_; 393 scoped_ptr<uint8> scanline_;
392 void FlipVertically(uint8* framebuffer, 394 void FlipVertically(uint8* framebuffer,
393 unsigned int width, 395 unsigned int width,
394 unsigned int height); 396 unsigned int height);
395 #endif 397 #endif
396 }; 398 };
397 399
398 #endif // defined(ENABLE_GPU) 400 #endif // defined(ENABLE_GPU)
399 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 401 #endif // CHROME_RENDERER_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
400 402
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698