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

Side by Side Diff: content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.h

Issue 7762013: Added GPU process "echo" IPC message. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
6 #define CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 6 #define CONTENT_RENDERER_GPU_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
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/task.h"
14 #include "content/renderer/gpu/renderer_gl_context.h" 15 #include "content/renderer/gpu/renderer_gl_context.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D. h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebGraphicsContext3D. h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" 17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h"
17 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" 18 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
18 #include "ui/gfx/native_widget_types.h" 19 #include "ui/gfx/native_widget_types.h"
19 20
20 #if !defined(OS_MACOSX) 21 #if !defined(OS_MACOSX)
21 #define FLIP_FRAMEBUFFER_VERTICALLY 22 #define FLIP_FRAMEBUFFER_VERTICALLY
22 #endif 23 #endif
23 24
(...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 462
462 WebKit::WebGraphicsContext3D::Attributes attributes_; 463 WebKit::WebGraphicsContext3D::Attributes attributes_;
463 int cached_width_, cached_height_; 464 int cached_width_, cached_height_;
464 465
465 // For tracking which FBO is bound. 466 // For tracking which FBO is bound.
466 WebGLId bound_fbo_; 467 WebGLId bound_fbo_;
467 468
468 // Errors raised by synthesizeGLError(). 469 // Errors raised by synthesizeGLError().
469 std::vector<WGC3Denum> synthetic_errors_; 470 std::vector<WGC3Denum> synthetic_errors_;
470 471
472 ScopedRunnableMethodFactory<WebGraphicsContext3DCommandBufferImpl>
473 method_factory_;
474
471 #ifdef FLIP_FRAMEBUFFER_VERTICALLY 475 #ifdef FLIP_FRAMEBUFFER_VERTICALLY
472 scoped_array<uint8> scanline_; 476 scoped_array<uint8> scanline_;
473 void FlipVertically(uint8* framebuffer, 477 void FlipVertically(uint8* framebuffer,
474 unsigned int width, 478 unsigned int width,
475 unsigned int height); 479 unsigned int height);
476 #endif 480 #endif
477 }; 481 };
478 482
479 #endif // defined(ENABLE_GPU) 483 #endif // defined(ENABLE_GPU)
480 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_ 484 #endif // CONTENT_RENDERER_GPU_WEBGRAPHICSCONTEXT3D_COMMAND_BUFFER_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/renderer_gl_context.cc ('k') | content/renderer/gpu/webgraphicscontext3d_command_buffer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698