OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include "content/common/gpu/media/rendering_helper.h" | 5 #include "content/common/gpu/media/rendering_helper.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/mac/scoped_nsautorelease_pool.h" | 8 #include "base/mac/scoped_nsautorelease_pool.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/strings/stringize_macros.h" | 10 #include "base/strings/stringize_macros.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
74 } | 74 } |
75 | 75 |
76 std::string GLContextStubWithExtensions::GetExtensions() { | 76 std::string GLContextStubWithExtensions::GetExtensions() { |
77 return extensions_; | 77 return extensions_; |
78 } | 78 } |
79 | 79 |
80 } // anonymous | 80 } // anonymous |
81 | 81 |
82 namespace content { | 82 namespace content { |
83 | 83 |
84 RenderingHelperParams::RenderingHelperParams() {} | 84 RenderingHelperParams::RenderingHelperParams() |
85 : num_windows(1), render_as_thumbnails(false) {} | |
Ami GONE FROM CHROMIUM
2013/11/04 18:26:51
Why not instead make these ctor params and turn th
wuchengli
2013/11/05 06:24:15
Making all the members to ctor introduces more cod
| |
85 | 86 |
86 RenderingHelperParams::~RenderingHelperParams() {} | 87 RenderingHelperParams::~RenderingHelperParams() {} |
87 | 88 |
88 static const gfx::GLImplementation kGLImplementation = | 89 static const gfx::GLImplementation kGLImplementation = |
89 #if defined(GL_VARIANT_GLX) | 90 #if defined(GL_VARIANT_GLX) |
90 gfx::kGLImplementationDesktopGL; | 91 gfx::kGLImplementationDesktopGL; |
91 #elif defined(GL_VARIANT_EGL) | 92 #elif defined(GL_VARIANT_EGL) |
92 gfx::kGLImplementationEGLGLES2; | 93 gfx::kGLImplementationEGLGLES2; |
93 #else | 94 #else |
94 -1; | 95 -1; |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
563 *rgb_ptr++ = *rgba_ptr++; | 564 *rgb_ptr++ = *rgba_ptr++; |
564 solid = solid && (*rgba_ptr == 0xff); | 565 solid = solid && (*rgba_ptr == 0xff); |
565 rgba_ptr++; | 566 rgba_ptr++; |
566 } | 567 } |
567 *alpha_solid = solid; | 568 *alpha_solid = solid; |
568 | 569 |
569 done->Signal(); | 570 done->Signal(); |
570 } | 571 } |
571 | 572 |
572 } // namespace content | 573 } // namespace content |
OLD | NEW |